diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2008-10-20 11:01:06 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-27 12:18:27 -0400 |
commit | 1ba5a1767416cfa4fa37096e160e764c56e1460a (patch) | |
tree | 8feceebc290143f5fc4e77700836a93a155178be /arch/mips/txx9/generic | |
parent | bc89b2bdefa5f56133d0b19a220880d4ada62560 (diff) |
MIPS: RBTX4939: Add smc91x support
Add smc91x platform device to RBTX4939 board and some hacks for big endian.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/txx9/generic')
-rw-r--r-- | arch/mips/txx9/generic/setup.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index 5526375010f8..18086c549573 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c | |||
@@ -622,6 +622,21 @@ unsigned long (*__swizzle_addr_b)(unsigned long port) = __swizzle_addr_none; | |||
622 | EXPORT_SYMBOL(__swizzle_addr_b); | 622 | EXPORT_SYMBOL(__swizzle_addr_b); |
623 | #endif | 623 | #endif |
624 | 624 | ||
625 | #ifdef NEEDS_TXX9_IOSWABW | ||
626 | static u16 ioswabw_default(volatile u16 *a, u16 x) | ||
627 | { | ||
628 | return le16_to_cpu(x); | ||
629 | } | ||
630 | static u16 __mem_ioswabw_default(volatile u16 *a, u16 x) | ||
631 | { | ||
632 | return x; | ||
633 | } | ||
634 | u16 (*ioswabw)(volatile u16 *a, u16 x) = ioswabw_default; | ||
635 | EXPORT_SYMBOL(ioswabw); | ||
636 | u16 (*__mem_ioswabw)(volatile u16 *a, u16 x) = __mem_ioswabw_default; | ||
637 | EXPORT_SYMBOL(__mem_ioswabw); | ||
638 | #endif | ||
639 | |||
625 | void __init txx9_physmap_flash_init(int no, unsigned long addr, | 640 | void __init txx9_physmap_flash_init(int no, unsigned long addr, |
626 | unsigned long size, | 641 | unsigned long size, |
627 | const struct physmap_flash_data *pdata) | 642 | const struct physmap_flash_data *pdata) |