diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2012-08-09 11:46:27 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-08-09 11:48:45 -0400 |
commit | 1d3266ecca67066e537fe0e0669bed77d355f886 (patch) | |
tree | bd3ba1a95bf47f418e7bde589ef58a67e60be511 /arch/arm/mach-ux500/include | |
parent | e1bbb55d11622012197a654af874f9f485ddbc47 (diff) |
ARM: ux500: add detection for DB8500 ASIC v2.2
Add a macro to properly detect the v2.2 version of the
DB8500 ASIC.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-ux500/include')
-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 c7fcf694a32c..9c42642ab168 100644 --- a/arch/arm/mach-ux500/include/mach/id.h +++ b/arch/arm/mach-ux500/include/mach/id.h | |||
@@ -105,6 +105,11 @@ static inline bool cpu_is_u8500v21(void) | |||
105 | return cpu_is_u8500() && (dbx500_revision() == 0xB1); | 105 | return cpu_is_u8500() && (dbx500_revision() == 0xB1); |
106 | } | 106 | } |
107 | 107 | ||
108 | static inline bool cpu_is_u8500v22(void) | ||
109 | { | ||
110 | return cpu_is_u8500() && (dbx500_revision() == 0xB2); | ||
111 | } | ||
112 | |||
108 | static inline bool cpu_is_u8500v20_or_later(void) | 113 | static inline bool cpu_is_u8500v20_or_later(void) |
109 | { | 114 | { |
110 | return (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11()); | 115 | return (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11()); |