diff options
author | Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com> | 2011-09-26 19:33:17 +0530 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2012-01-05 10:11:34 +0000 |
commit | 9d67354b867712c67d3a929e919491440106edf5 (patch) | |
tree | 860d236c506c027fa940f705a391fca4ffb2e9b9 /arch/arm/mach-ux500/include | |
parent | 311bdd76e38834146b9e7f427052b2b48a174c64 (diff) |
mach-ux500: Add db8520 cpu type
Add cpu_is_db8520() function.
ST Ericsson ID: 353334
ST Ericsson FOSS-OUT ID: Trivial
ST Ericsson Linux next: NA
Change-Id: I17f2e9c58de48ad04729f9283be2b0d9dfe04e25
Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31936
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500/include')
-rw-r--r-- | arch/arm/mach-ux500/include/mach/id.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/include/mach/id.h b/arch/arm/mach-ux500/include/mach/id.h index dfebed948cf..6f669eebc04 100644 --- a/arch/arm/mach-ux500/include/mach/id.h +++ b/arch/arm/mach-ux500/include/mach/id.h @@ -39,7 +39,17 @@ static inline unsigned int __attribute_const__ dbx500_revision(void) static inline bool __attribute_const__ cpu_is_u8500(void) { #ifdef CONFIG_UX500_SOC_DB8500 - return dbx500_partnumber() == 0x8500; + /* partnumber 8520 also comes under 8500 */ + return ((dbx500_partnumber() >> 8) & 0xff) == 0x85; +#else + return false; +#endif +} + +static inline bool __attribute_const__ cpu_is_u8520(void) +{ +#ifdef CONFIG_UX500_SOC_DB8500 + return dbx500_partnumber() == 0x8520; #else return false; #endif |