diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2012-08-09 11:10:36 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-08-09 11:48:45 -0400 |
commit | e1bbb55d11622012197a654af874f9f485ddbc47 (patch) | |
tree | 6373609d38101366bcca4601854df310d6d08156 /arch/arm/mach-ux500/include/mach | |
parent | a4d9b33be02bd826e09ddfebdd8ac4ccdf1aeee3 (diff) |
ARM: ux500: reform Ux500 family names
Counting the U9540 and the new U8540 as a U8500 family member
does not work. Instead, split the function in two:
cpu_is_u8500_family() covering U8500 and U8520
cpu_is_ux540_family() covering U9540 and U8540
This works much better in practice. Update users to keep the
same behaviour.
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 | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/arch/arm/mach-ux500/include/mach/id.h b/arch/arm/mach-ux500/include/mach/id.h index d1240e458a60..c7fcf694a32c 100644 --- a/arch/arm/mach-ux500/include/mach/id.h +++ b/arch/arm/mach-ux500/include/mach/id.h | |||
@@ -46,14 +46,24 @@ static inline bool __attribute_const__ cpu_is_u8520(void) | |||
46 | return dbx500_partnumber() == 0x8520; | 46 | return dbx500_partnumber() == 0x8520; |
47 | } | 47 | } |
48 | 48 | ||
49 | static inline bool cpu_is_u8500_family(void) | ||
50 | { | ||
51 | return cpu_is_u8500() || cpu_is_u8520(); | ||
52 | } | ||
53 | |||
49 | static inline bool __attribute_const__ cpu_is_u9540(void) | 54 | static inline bool __attribute_const__ cpu_is_u9540(void) |
50 | { | 55 | { |
51 | return dbx500_partnumber() == 0x9540; | 56 | return dbx500_partnumber() == 0x9540; |
52 | } | 57 | } |
53 | 58 | ||
54 | static inline bool cpu_is_u8500_family(void) | 59 | static inline bool __attribute_const__ cpu_is_u8540(void) |
60 | { | ||
61 | return dbx500_partnumber() == 0x8540; | ||
62 | } | ||
63 | |||
64 | static inline bool cpu_is_ux540_family(void) | ||
55 | { | 65 | { |
56 | return cpu_is_u8500() || cpu_is_u9540(); | 66 | return cpu_is_u9540() || cpu_is_u8540(); |
57 | } | 67 | } |
58 | 68 | ||
59 | /* | 69 | /* |
@@ -97,12 +107,7 @@ static inline bool cpu_is_u8500v21(void) | |||
97 | 107 | ||
98 | static inline bool cpu_is_u8500v20_or_later(void) | 108 | static inline bool cpu_is_u8500v20_or_later(void) |
99 | { | 109 | { |
100 | /* | 110 | return (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11()); |
101 | * U9540 has so much in common with U8500 that is is considered a | ||
102 | * U8500 variant. | ||
103 | */ | ||
104 | return cpu_is_u9540() || | ||
105 | (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11()); | ||
106 | } | 111 | } |
107 | 112 | ||
108 | static inline bool ux500_is_svp(void) | 113 | static inline bool ux500_is_svp(void) |