msm: socinfo: Add support for MSM8930AA
Add the SoC ID and cpu_is wrapper for identifying the
MSM8930AA SoC.
Change-Id: I7d2344c1903afb6830ef2362c200a91f72845d25
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
diff --git a/arch/arm/mach-msm/include/mach/socinfo.h b/arch/arm/mach-msm/include/mach/socinfo.h
index 6b4ce2a..15aebcd 100644
--- a/arch/arm/mach-msm/include/mach/socinfo.h
+++ b/arch/arm/mach-msm/include/mach/socinfo.h
@@ -73,6 +73,7 @@
MSM_CPU_7X25AB,
MSM_CPU_8064,
MSM_CPU_8930,
+ MSM_CPU_8930AA,
MSM_CPU_7X27AA,
MSM_CPU_9615,
MSM_CPU_8974,
@@ -262,6 +263,15 @@
#endif
}
+static inline int cpu_is_msm8930aa(void)
+{
+#ifdef CONFIG_ARCH_MSM8930
+ return read_msm_cpu_type() == MSM_CPU_8930AA;
+#else
+ return 0;
+#endif
+}
+
static inline int cpu_is_msm8627(void)
{
/* 8930 and 8627 will share the same CONFIG_ARCH type unless otherwise needed */