diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-30 14:45:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-30 14:45:52 -0400 |
commit | 287dc4b7642df15fa6b9f286c812e79138acd698 (patch) | |
tree | c3ebe1caea100ff2b8f414619ec0a9dcd8a14547 /arch/mips/txx9/rbtx4939/setup.c | |
parent | 720d85075b7ed3617de8ca8d9097390e303e9f60 (diff) | |
parent | 68d8848567ef03eb2c2303173934428d0bf0a531 (diff) |
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS updates from Ralf Baechle:
"More hardware support across the field including a bunch of device
drivers. The highlight however really are further steps towards
device tree.
This has been sitting in -next for ages. All MIPS _defconfigs have
been tested to boot or where I don't have hardware available, to at
least build fine."
* 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (77 commits)
MIPS: Loongson 1B: Add defconfig
MIPS: Loongson 1B: Add board support
MIPS: Netlogic: early console fix
MIPS: Netlogic: Fix indentation of smpboot.S
MIPS: Netlogic: remove cpu_has_dc_aliases define for XLP
MIPS: Netlogic: Remove unused pcibios_fixups
MIPS: Netlogic: Add XLP SoC devices in FDT
MIPS: Netlogic: Add IRQ mappings for more devices
MIPS: Netlogic: USB support for XLP
MIPS: Netlogic: XLP PCIe controller support.
MIPS: Netlogic: Platform changes for XLR/XLS I2C
MIPS: Netlogic: Platform NAND/NOR flash support
MIPS: Netlogic: Platform changes for XLS USB
MIPS: Netlogic: Remove NETLOGIC_ prefix
MIPS: Netlogic: SMP wakeup code update
MIPS: Netlogic: Update comments in smpboot.S
MIPS: BCM63XX: Add 96328avng reference board
MIPS: Expose PCIe drivers for MIPS
MIPS: BCM63XX: Add PCIe Support for BCM6328
MIPS: BCM63XX: Move the PCI initialization into its own function
...
Diffstat (limited to 'arch/mips/txx9/rbtx4939/setup.c')
-rw-r--r-- | arch/mips/txx9/rbtx4939/setup.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/mips/txx9/rbtx4939/setup.c b/arch/mips/txx9/rbtx4939/setup.c index 2ad8973ba13d..e15641d93092 100644 --- a/arch/mips/txx9/rbtx4939/setup.c +++ b/arch/mips/txx9/rbtx4939/setup.c | |||
@@ -40,8 +40,7 @@ static void __init rbtx4939_time_init(void) | |||
40 | tx4939_time_init(0); | 40 | tx4939_time_init(0); |
41 | } | 41 | } |
42 | 42 | ||
43 | #if defined(__BIG_ENDIAN) && \ | 43 | #if defined(__BIG_ENDIAN) && IS_ENABLED(CONFIG_SMC91X) |
44 | (defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)) | ||
45 | #define HAVE_RBTX4939_IOSWAB | 44 | #define HAVE_RBTX4939_IOSWAB |
46 | #define IS_CE1_ADDR(addr) \ | 45 | #define IS_CE1_ADDR(addr) \ |
47 | ((((unsigned long)(addr) - IO_BASE) & 0xfff00000) == TXX9_CE(1)) | 46 | ((((unsigned long)(addr) - IO_BASE) & 0xfff00000) == TXX9_CE(1)) |
@@ -187,7 +186,7 @@ static void __init rbtx4939_update_ioc_pen(void) | |||
187 | 186 | ||
188 | #define RBTX4939_MAX_7SEGLEDS 8 | 187 | #define RBTX4939_MAX_7SEGLEDS 8 |
189 | 188 | ||
190 | #if defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE) | 189 | #if IS_ENABLED(CONFIG_LEDS_CLASS) |
191 | static u8 led_val[RBTX4939_MAX_7SEGLEDS]; | 190 | static u8 led_val[RBTX4939_MAX_7SEGLEDS]; |
192 | struct rbtx4939_led_data { | 191 | struct rbtx4939_led_data { |
193 | struct led_classdev cdev; | 192 | struct led_classdev cdev; |
@@ -263,7 +262,7 @@ static inline void rbtx4939_led_setup(void) | |||
263 | 262 | ||
264 | static void __rbtx4939_7segled_putc(unsigned int pos, unsigned char val) | 263 | static void __rbtx4939_7segled_putc(unsigned int pos, unsigned char val) |
265 | { | 264 | { |
266 | #if defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE) | 265 | #if IS_ENABLED(CONFIG_LEDS_CLASS) |
267 | unsigned long flags; | 266 | unsigned long flags; |
268 | local_irq_save(flags); | 267 | local_irq_save(flags); |
269 | /* bit7: reserved for LED class */ | 268 | /* bit7: reserved for LED class */ |
@@ -287,7 +286,7 @@ static void rbtx4939_7segled_putc(unsigned int pos, unsigned char val) | |||
287 | __rbtx4939_7segled_putc(pos, val); | 286 | __rbtx4939_7segled_putc(pos, val); |
288 | } | 287 | } |
289 | 288 | ||
290 | #if defined(CONFIG_MTD_RBTX4939) || defined(CONFIG_MTD_RBTX4939_MODULE) | 289 | #if IS_ENABLED(CONFIG_MTD_RBTX4939) |
291 | /* special mapping for boot rom */ | 290 | /* special mapping for boot rom */ |
292 | static unsigned long rbtx4939_flash_fixup_ofs(unsigned long ofs) | 291 | static unsigned long rbtx4939_flash_fixup_ofs(unsigned long ofs) |
293 | { | 292 | { |
@@ -463,7 +462,7 @@ static void __init rbtx4939_device_init(void) | |||
463 | .flags = SMC91X_USE_16BIT, | 462 | .flags = SMC91X_USE_16BIT, |
464 | }; | 463 | }; |
465 | struct platform_device *pdev; | 464 | struct platform_device *pdev; |
466 | #if defined(CONFIG_TC35815) || defined(CONFIG_TC35815_MODULE) | 465 | #if IS_ENABLED(CONFIG_TC35815) |
467 | int i, j; | 466 | int i, j; |
468 | unsigned char ethaddr[2][6]; | 467 | unsigned char ethaddr[2][6]; |
469 | u8 bdipsw = readb(rbtx4939_bdipsw_addr) & 0x0f; | 468 | u8 bdipsw = readb(rbtx4939_bdipsw_addr) & 0x0f; |