diff options
author | Manuel Lauss <mano@roarinelk.homelinux.net> | 2009-03-25 12:49:31 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-03-30 08:49:46 -0400 |
commit | 91e8a30e90144bcd0fead02dc57976f304c3b3f7 (patch) | |
tree | 59877a38f8aaac8bc14c5f184a860f16b7a21785 /drivers/net/smc91x.h | |
parent | 2f794d099da2f081de2fe19b289a3aa807f735fa (diff) |
MIPS: Alchemy: PB1200: use SMC91X platform data.
Add platform data for the smc91x on the PB1200/DB1200, and remove the
now unused AU1X00 entry in smc91x.h.
Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Diffstat (limited to 'drivers/net/smc91x.h')
-rw-r--r-- | drivers/net/smc91x.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/net/smc91x.h b/drivers/net/smc91x.h index 6c44f86ae3fd..912308eec865 100644 --- a/drivers/net/smc91x.h +++ b/drivers/net/smc91x.h | |||
@@ -346,38 +346,6 @@ static inline void LPD7_SMC_outsw (unsigned char* a, int r, | |||
346 | #define RPC_LSA_DEFAULT RPC_LED_TX_RX | 346 | #define RPC_LSA_DEFAULT RPC_LED_TX_RX |
347 | #define RPC_LSB_DEFAULT RPC_LED_100_10 | 347 | #define RPC_LSB_DEFAULT RPC_LED_100_10 |
348 | 348 | ||
349 | #elif defined(CONFIG_SOC_AU1X00) | ||
350 | |||
351 | #include <au1xxx.h> | ||
352 | |||
353 | /* We can only do 16-bit reads and writes in the static memory space. */ | ||
354 | #define SMC_CAN_USE_8BIT 0 | ||
355 | #define SMC_CAN_USE_16BIT 1 | ||
356 | #define SMC_CAN_USE_32BIT 0 | ||
357 | #define SMC_IO_SHIFT 0 | ||
358 | #define SMC_NOWAIT 1 | ||
359 | |||
360 | #define SMC_inw(a, r) au_readw((unsigned long)((a) + (r))) | ||
361 | #define SMC_insw(a, r, p, l) \ | ||
362 | do { \ | ||
363 | unsigned long _a = (unsigned long)((a) + (r)); \ | ||
364 | int _l = (l); \ | ||
365 | u16 *_p = (u16 *)(p); \ | ||
366 | while (_l-- > 0) \ | ||
367 | *_p++ = au_readw(_a); \ | ||
368 | } while(0) | ||
369 | #define SMC_outw(v, a, r) au_writew(v, (unsigned long)((a) + (r))) | ||
370 | #define SMC_outsw(a, r, p, l) \ | ||
371 | do { \ | ||
372 | unsigned long _a = (unsigned long)((a) + (r)); \ | ||
373 | int _l = (l); \ | ||
374 | const u16 *_p = (const u16 *)(p); \ | ||
375 | while (_l-- > 0) \ | ||
376 | au_writew(*_p++ , _a); \ | ||
377 | } while(0) | ||
378 | |||
379 | #define SMC_IRQ_FLAGS (0) | ||
380 | |||
381 | #elif defined(CONFIG_ARCH_VERSATILE) | 349 | #elif defined(CONFIG_ARCH_VERSATILE) |
382 | 350 | ||
383 | #define SMC_CAN_USE_8BIT 1 | 351 | #define SMC_CAN_USE_8BIT 1 |