diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-04-28 08:48:43 -0400 |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-05-23 17:16:21 -0400 |
commit | 8a4fe82497a52b6da45b5b3179cce7dd6a28a532 (patch) | |
tree | dfdc254874b81982860bb4b57c732d446949c505 /arch/arm/mach-ixp4xx | |
parent | 2e418400728a9fcacb2ab75f0547584a56b8a584 (diff) |
IXP42x: Identify Intel IXP425 rev. A0 processors.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'arch/arm/mach-ixp4xx')
-rw-r--r-- | arch/arm/mach-ixp4xx/include/mach/cpu.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-ixp4xx/include/mach/cpu.h b/arch/arm/mach-ixp4xx/include/mach/cpu.h index def7773be67..b2ef65db0e9 100644 --- a/arch/arm/mach-ixp4xx/include/mach/cpu.h +++ b/arch/arm/mach-ixp4xx/include/mach/cpu.h | |||
@@ -26,6 +26,8 @@ | |||
26 | #define IXP46X_PROCESSOR_ID_VALUE 0x69054200 /* including IXP455 */ | 26 | #define IXP46X_PROCESSOR_ID_VALUE 0x69054200 /* including IXP455 */ |
27 | #define IXP46X_PROCESSOR_ID_MASK 0xfffffff0 | 27 | #define IXP46X_PROCESSOR_ID_MASK 0xfffffff0 |
28 | 28 | ||
29 | #define cpu_is_ixp42x_rev_a0() ((read_cpuid_id() & (IXP42X_PROCESSOR_ID_MASK | 0xF)) == \ | ||
30 | IXP42X_PROCESSOR_ID_VALUE) | ||
29 | #define cpu_is_ixp42x() ((read_cpuid_id() & IXP42X_PROCESSOR_ID_MASK) == \ | 31 | #define cpu_is_ixp42x() ((read_cpuid_id() & IXP42X_PROCESSOR_ID_MASK) == \ |
30 | IXP42X_PROCESSOR_ID_VALUE) | 32 | IXP42X_PROCESSOR_ID_VALUE) |
31 | #define cpu_is_ixp43x() ((read_cpuid_id() & IXP43X_PROCESSOR_ID_MASK) == \ | 33 | #define cpu_is_ixp43x() ((read_cpuid_id() & IXP43X_PROCESSOR_ID_MASK) == \ |
@@ -35,8 +37,11 @@ | |||
35 | 37 | ||
36 | static inline u32 ixp4xx_read_feature_bits(void) | 38 | static inline u32 ixp4xx_read_feature_bits(void) |
37 | { | 39 | { |
38 | unsigned int val = ~*IXP4XX_EXP_CFG2; | 40 | u32 val = ~*IXP4XX_EXP_CFG2; |
39 | 41 | ||
42 | if (cpu_is_ixp42x_rev_a0()) | ||
43 | return IXP42X_FEATURE_MASK & ~(IXP4XX_FEATURE_RCOMP | | ||
44 | IXP4XX_FEATURE_AES); | ||
40 | if (cpu_is_ixp42x()) | 45 | if (cpu_is_ixp42x()) |
41 | return val & IXP42X_FEATURE_MASK; | 46 | return val & IXP42X_FEATURE_MASK; |
42 | if (cpu_is_ixp43x()) | 47 | if (cpu_is_ixp43x()) |