diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2012-08-09 10:34:41 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-08-09 11:48:44 -0400 |
commit | a4d9b33be02bd826e09ddfebdd8ac4ccdf1aeee3 (patch) | |
tree | 013e65fed5aead3eed9b705c980b023ab7b708b3 /arch/arm/mach-ux500/include/mach | |
parent | a8035217324d52a316c4dd109736f9ebd5124951 (diff) |
ARM: ux500: add a U8520 detection macro
In line with the other macros this detects the DB8520
ASIC variant.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-ux500/include/mach')
-rw-r--r-- | arch/arm/mach-ux500/include/mach/id.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/include/mach/id.h b/arch/arm/mach-ux500/include/mach/id.h index 87aa921f3d17..d1240e458a60 100644 --- a/arch/arm/mach-ux500/include/mach/id.h +++ b/arch/arm/mach-ux500/include/mach/id.h | |||
@@ -41,6 +41,11 @@ static inline bool __attribute_const__ cpu_is_u8500(void) | |||
41 | return dbx500_partnumber() == 0x8500; | 41 | return dbx500_partnumber() == 0x8500; |
42 | } | 42 | } |
43 | 43 | ||
44 | static inline bool __attribute_const__ cpu_is_u8520(void) | ||
45 | { | ||
46 | return dbx500_partnumber() == 0x8520; | ||
47 | } | ||
48 | |||
44 | static inline bool __attribute_const__ cpu_is_u9540(void) | 49 | static inline bool __attribute_const__ cpu_is_u9540(void) |
45 | { | 50 | { |
46 | return dbx500_partnumber() == 0x9540; | 51 | return dbx500_partnumber() == 0x9540; |