|
46 | 46 | defined(CONFIG_MACH_LITTLETON) ||\
|
47 | 47 | defined(CONFIG_MACH_ZYLONITE2) ||\
|
48 | 48 | defined(CONFIG_ARCH_VIPER) ||\
|
49 |
| - defined(CONFIG_MACH_STARGATE2) |
| 49 | + defined(CONFIG_MACH_STARGATE2) ||\ |
| 50 | + defined(CONFIG_ARCH_VERSATILE) |
50 | 51 |
|
51 | 52 | #include <asm/mach-types.h>
|
52 | 53 |
|
@@ -154,6 +155,8 @@ static inline void SMC_outw(u16 val, void __iomem *ioaddr, int reg)
|
154 | 155 | #define SMC_outl(v, a, r) writel(v, (a) + (r))
|
155 | 156 | #define SMC_insl(a, r, p, l) readsl((a) + (r), p, l)
|
156 | 157 | #define SMC_outsl(a, r, p, l) writesl((a) + (r), p, l)
|
| 158 | +#define SMC_insw(a, r, p, l) readsw((a) + (r), p, l) |
| 159 | +#define SMC_outsw(a, r, p, l) writesw((a) + (r), p, l) |
157 | 160 | #define SMC_IRQ_FLAGS (-1) /* from resource */
|
158 | 161 |
|
159 | 162 | /* We actually can't write halfwords properly if not word aligned */
|
@@ -206,23 +209,6 @@ SMC_outw(u16 val, void __iomem *ioaddr, int reg)
|
206 | 209 | #define RPC_LSA_DEFAULT RPC_LED_TX_RX
|
207 | 210 | #define RPC_LSB_DEFAULT RPC_LED_100_10
|
208 | 211 |
|
209 |
| -#elif defined(CONFIG_ARCH_VERSATILE) |
210 |
| - |
211 |
| -#define SMC_CAN_USE_8BIT 1 |
212 |
| -#define SMC_CAN_USE_16BIT 1 |
213 |
| -#define SMC_CAN_USE_32BIT 1 |
214 |
| -#define SMC_NOWAIT 1 |
215 |
| - |
216 |
| -#define SMC_inb(a, r) readb((a) + (r)) |
217 |
| -#define SMC_inw(a, r) readw((a) + (r)) |
218 |
| -#define SMC_inl(a, r) readl((a) + (r)) |
219 |
| -#define SMC_outb(v, a, r) writeb(v, (a) + (r)) |
220 |
| -#define SMC_outw(v, a, r) writew(v, (a) + (r)) |
221 |
| -#define SMC_outl(v, a, r) writel(v, (a) + (r)) |
222 |
| -#define SMC_insl(a, r, p, l) readsl((a) + (r), p, l) |
223 |
| -#define SMC_outsl(a, r, p, l) writesl((a) + (r), p, l) |
224 |
| -#define SMC_IRQ_FLAGS (-1) /* from resource */ |
225 |
| - |
226 | 212 | #elif defined(CONFIG_MN10300)
|
227 | 213 |
|
228 | 214 | /*
|
|
0 commit comments