diff options
Diffstat (limited to 'arch/arm/mach-ux500/include')
-rw-r--r-- | arch/arm/mach-ux500/include/mach/id.h | 44 | ||||
-rw-r--r-- | arch/arm/mach-ux500/include/mach/msp.h | 2 |
2 files changed, 15 insertions, 31 deletions
diff --git a/arch/arm/mach-ux500/include/mach/id.h b/arch/arm/mach-ux500/include/mach/id.h index c6e2db9e9e51..9c42642ab168 100644 --- a/arch/arm/mach-ux500/include/mach/id.h +++ b/arch/arm/mach-ux500/include/mach/id.h | |||
@@ -41,43 +41,29 @@ 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_u9540(void) | 44 | static inline bool __attribute_const__ cpu_is_u8520(void) |
45 | { | 45 | { |
46 | return dbx500_partnumber() == 0x9540; | 46 | return dbx500_partnumber() == 0x8520; |
47 | } | 47 | } |
48 | 48 | ||
49 | static inline bool cpu_is_u8500_family(void) | 49 | static inline bool cpu_is_u8500_family(void) |
50 | { | 50 | { |
51 | return cpu_is_u8500() || cpu_is_u9540(); | 51 | return cpu_is_u8500() || cpu_is_u8520(); |
52 | } | ||
53 | |||
54 | static inline bool __attribute_const__ cpu_is_u5500(void) | ||
55 | { | ||
56 | return dbx500_partnumber() == 0x5500; | ||
57 | } | ||
58 | |||
59 | /* | ||
60 | * 5500 revisions | ||
61 | */ | ||
62 | |||
63 | static inline bool __attribute_const__ cpu_is_u5500v1(void) | ||
64 | { | ||
65 | return cpu_is_u5500() && (dbx500_revision() & 0xf0) == 0xA0; | ||
66 | } | 52 | } |
67 | 53 | ||
68 | static inline bool __attribute_const__ cpu_is_u5500v2(void) | 54 | static inline bool __attribute_const__ cpu_is_u9540(void) |
69 | { | 55 | { |
70 | return (dbx500_id.revision & 0xf0) == 0xB0; | 56 | return dbx500_partnumber() == 0x9540; |
71 | } | 57 | } |
72 | 58 | ||
73 | static inline bool __attribute_const__ cpu_is_u5500v20(void) | 59 | static inline bool __attribute_const__ cpu_is_u8540(void) |
74 | { | 60 | { |
75 | return cpu_is_u5500() && ((dbx500_revision() & 0xf0) == 0xB0); | 61 | return dbx500_partnumber() == 0x8540; |
76 | } | 62 | } |
77 | 63 | ||
78 | static inline bool __attribute_const__ cpu_is_u5500v21(void) | 64 | static inline bool cpu_is_ux540_family(void) |
79 | { | 65 | { |
80 | return cpu_is_u5500() && (dbx500_revision() == 0xB1); | 66 | return cpu_is_u9540() || cpu_is_u8540(); |
81 | } | 67 | } |
82 | 68 | ||
83 | /* | 69 | /* |
@@ -119,14 +105,14 @@ static inline bool cpu_is_u8500v21(void) | |||
119 | return cpu_is_u8500() && (dbx500_revision() == 0xB1); | 105 | return cpu_is_u8500() && (dbx500_revision() == 0xB1); |
120 | } | 106 | } |
121 | 107 | ||
108 | static inline bool cpu_is_u8500v22(void) | ||
109 | { | ||
110 | return cpu_is_u8500() && (dbx500_revision() == 0xB2); | ||
111 | } | ||
112 | |||
122 | static inline bool cpu_is_u8500v20_or_later(void) | 113 | static inline bool cpu_is_u8500v20_or_later(void) |
123 | { | 114 | { |
124 | /* | 115 | return (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11()); |
125 | * U9540 has so much in common with U8500 that is is considered a | ||
126 | * U8500 variant. | ||
127 | */ | ||
128 | return cpu_is_u9540() || | ||
129 | (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11()); | ||
130 | } | 116 | } |
131 | 117 | ||
132 | static inline bool ux500_is_svp(void) | 118 | static inline bool ux500_is_svp(void) |
diff --git a/arch/arm/mach-ux500/include/mach/msp.h b/arch/arm/mach-ux500/include/mach/msp.h index 798be19129ef..3cc7142eee02 100644 --- a/arch/arm/mach-ux500/include/mach/msp.h +++ b/arch/arm/mach-ux500/include/mach/msp.h | |||
@@ -22,8 +22,6 @@ struct msp_i2s_platform_data { | |||
22 | enum msp_i2s_id id; | 22 | enum msp_i2s_id id; |
23 | struct stedma40_chan_cfg *msp_i2s_dma_rx; | 23 | struct stedma40_chan_cfg *msp_i2s_dma_rx; |
24 | struct stedma40_chan_cfg *msp_i2s_dma_tx; | 24 | struct stedma40_chan_cfg *msp_i2s_dma_tx; |
25 | int (*msp_i2s_init) (void); | ||
26 | int (*msp_i2s_exit) (void); | ||
27 | }; | 25 | }; |
28 | 26 | ||
29 | #endif | 27 | #endif |