diff options
author | Maxime Coquelin <maxime.coquelin@stericsson.com> | 2012-10-18 08:55:41 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-01-29 12:47:37 -0500 |
commit | b5bbd41784cb607dd4499e893a660a04873d830b (patch) | |
tree | 16382104a6cd834bde1931f2484467b7d844cbfd /arch/arm/mach-ux500 | |
parent | 222e8500f5e75d578ce1cc38c0349f89646319c4 (diff) |
ARM: ux500: Introduce cpu_is_u8580()
Detect the subrevision v1 of U8540 and U8580.
DB8580 is the FDSOI variant of DB8540. Some differences
with DB8540 related to clocks will need to be checked with
a cpu_is_u8580() function.
Signed-off-by: Maxime Coquelin <maxime.coquelin@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-ux500')
-rw-r--r-- | arch/arm/mach-ux500/include/mach/id.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/include/mach/id.h b/arch/arm/mach-ux500/include/mach/id.h index 9c42642ab168..bcc58a8cccbc 100644 --- a/arch/arm/mach-ux500/include/mach/id.h +++ b/arch/arm/mach-ux500/include/mach/id.h | |||
@@ -61,9 +61,14 @@ static inline bool __attribute_const__ cpu_is_u8540(void) | |||
61 | return dbx500_partnumber() == 0x8540; | 61 | return dbx500_partnumber() == 0x8540; |
62 | } | 62 | } |
63 | 63 | ||
64 | static inline bool __attribute_const__ cpu_is_u8580(void) | ||
65 | { | ||
66 | return dbx500_partnumber() == 0x8580; | ||
67 | } | ||
68 | |||
64 | static inline bool cpu_is_ux540_family(void) | 69 | static inline bool cpu_is_ux540_family(void) |
65 | { | 70 | { |
66 | return cpu_is_u9540() || cpu_is_u8540(); | 71 | return cpu_is_u9540() || cpu_is_u8540() || cpu_is_u8580(); |
67 | } | 72 | } |
68 | 73 | ||
69 | /* | 74 | /* |
@@ -115,6 +120,20 @@ static inline bool cpu_is_u8500v20_or_later(void) | |||
115 | return (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11()); | 120 | return (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11()); |
116 | } | 121 | } |
117 | 122 | ||
123 | /* | ||
124 | * 8540 revisions | ||
125 | */ | ||
126 | |||
127 | static inline bool __attribute_const__ cpu_is_u8540v10(void) | ||
128 | { | ||
129 | return cpu_is_u8540() && dbx500_revision() == 0xA0; | ||
130 | } | ||
131 | |||
132 | static inline bool __attribute_const__ cpu_is_u8580v10(void) | ||
133 | { | ||
134 | return cpu_is_u8580() && dbx500_revision() == 0xA0; | ||
135 | } | ||
136 | |||
118 | static inline bool ux500_is_svp(void) | 137 | static inline bool ux500_is_svp(void) |
119 | { | 138 | { |
120 | return false; | 139 | return false; |