platform: msm8996: Fixes needed to support qusb2 phy updates
Add API to detect 8996 hw platform. And move the QUSB
iomap to common header file
Change-Id: Iadd7928bb52505b86d11c8be497069bdae81b1aa
diff --git a/include/platform.h b/include/platform.h
index 623473b..a513843 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -67,4 +67,5 @@
int boot_device_mask(int);
uint32_t platform_detect_panel();
uint32_t platform_get_max_periph();
+int platform_is_msm8996();
#endif
diff --git a/platform/msm8996/include/platform/iomap.h b/platform/msm8996/include/platform/iomap.h
index 180b237..db38d98 100644
--- a/platform/msm8996/include/platform/iomap.h
+++ b/platform/msm8996/include/platform/iomap.h
@@ -76,13 +76,7 @@
/* QUSB2 PHY */
#define QUSB2_PHY_BASE 0x7411000
-#define QUSB2PHY_PORT_POWERDOWN (QUSB2_PHY_BASE + 0x000000B4)
#define GCC_QUSB2_PHY_BCR (CLK_CTL_BASE + 0x00012038)
-#define QUSB2PHY_PORT_UTMI_CTRL2 (QUSB2_PHY_BASE + 0x000000C4)
-#define QUSB2PHY_PORT_TUNE1 (QUSB2_PHY_BASE + 0x00000080)
-#define QUSB2PHY_PORT_TUNE2 (QUSB2_PHY_BASE + 0x00000084)
-#define QUSB2PHY_PORT_TUNE3 (QUSB2_PHY_BASE + 0x00000088)
-#define QUSB2PHY_PORT_TUNE4 (QUSB2_PHY_BASE + 0x0000008C)
/* Clocks */
#define CLK_CTL_BASE 0x300000
diff --git a/platform/msm8996/platform.c b/platform/msm8996/platform.c
index a82357b..d0ab86d 100644
--- a/platform/msm8996/platform.c
+++ b/platform/msm8996/platform.c
@@ -147,3 +147,11 @@
{
return 256;
}
+
+int platform_is_msm8996()
+{
+ if (board_platform_id() == MSM8996)
+ return 1;
+ else
+ return 0;
+}