platform: msm8953: add function to detect platform
Add function to detect msm8953 platform.
Change-Id: I04797e619a8405ca23a8c417761a42110030e77e
diff --git a/include/platform.h b/include/platform.h
index 6711836..f3f970b 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -69,6 +69,7 @@
int platform_is_msmgold();
uint32_t platform_get_apcs_ipc_base();
int platform_is_msm8952();
+int platform_is_msm8953();
int platform_is_msm8956();
uint32_t platform_is_msm8976_v_1_1();
uint32_t platform_get_tz_app_add();
diff --git a/platform/msm8953/platform.c b/platform/msm8953/platform.c
index 26dee27..cd39620 100644
--- a/platform/msm8953/platform.c
+++ b/platform/msm8953/platform.c
@@ -171,6 +171,16 @@
return MSM_SHARED_BASE;
}
+int platform_is_msm8953()
+{
+ uint32_t platform = board_platform_id();
+
+ if ((platform == MSM8953) || (platform == APQ8053))
+ return 1;
+ else
+ return 0;
+}
+
uint32_t platform_get_qmp_rev()
{
return readl(USB3_PHY_REVISION_ID3) << 24 | readl(USB3_PHY_REVISION_ID2) << 16 |