platform: msm8952: add platform identification for msm8952
Add function to detect platform type as msm8952
Change-Id: I2fd4b37a09de58d9e736a476e6c5e7caf58c4b6d
diff --git a/platform/msm8952/platform.c b/platform/msm8952/platform.c
index 435071e..6e6ef21 100644
--- a/platform/msm8952/platform.c
+++ b/platform/msm8952/platform.c
@@ -215,6 +215,24 @@
return ret;
}
+int platform_is_msm8952()
+{
+ uint32_t platform = board_platform_id();
+ uint32_t ret = 0;
+
+ switch(platform)
+ {
+ case MSM8952:
+ case APQ8052:
+ ret = 1;
+ break;
+ default:
+ ret = 0;
+ };
+
+ return ret;
+}
+
int platform_is_msm8956()
{
uint32_t platform = board_platform_id();