msm: socinfo: Add support for MSM8930AB

Add the MSM SoC ID information and cpu_is function for
supporting the MSM8930AB target.

Change-Id: I669bf77389fde84d2278f132fae804bf77c37b74
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
This commit is contained in:
Stepan Moskovchenko 2012-10-16 18:34:17 -07:00 committed by Stephen Boyd
parent 88a16cc82a
commit 91f60d2b93
2 changed files with 16 additions and 0 deletions

View file

@ -92,6 +92,7 @@ enum msm_cpu {
MSM_CPU_8064AB,
MSM_CPU_8930,
MSM_CPU_8930AA,
MSM_CPU_8930AB,
MSM_CPU_7X27AA,
MSM_CPU_9615,
MSM_CPU_8974,
@ -332,6 +333,15 @@ static inline int cpu_is_msm8930aa(void)
#endif
}
static inline int cpu_is_msm8930ab(void)
{
#ifdef CONFIG_ARCH_MSM8930
return read_msm_cpu_type() == MSM_CPU_8930AB;
#else
return 0;
#endif
}
static inline int cpu_is_msm8627(void)
{
/* 8930 and 8627 will share the same CONFIG_ARCH type unless otherwise needed */

View file

@ -288,6 +288,12 @@ static enum msm_cpu cpu_of_id[] = {
/* 8064AB IDs */
[153] = MSM_CPU_8064AB,
/* 8930AB IDs */
[154] = MSM_CPU_8930AB,
[155] = MSM_CPU_8930AB,
[156] = MSM_CPU_8930AB,
[157] = MSM_CPU_8930AB
/* Uninitialized IDs are not known to run Linux.
MSM_CPU_UNKNOWN is set to 0 to ensure these IDs are
considered as unknown CPU. */