diff options
Diffstat (limited to 'arch/mips/alchemy/devboards/pb1550/platform.c')
-rw-r--r-- | arch/mips/alchemy/devboards/pb1550/platform.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/alchemy/devboards/pb1550/platform.c b/arch/mips/alchemy/devboards/pb1550/platform.c index b496fb6de23..461339166a4 100644 --- a/arch/mips/alchemy/devboards/pb1550/platform.c +++ b/arch/mips/alchemy/devboards/pb1550/platform.c | |||
@@ -22,11 +22,14 @@ | |||
22 | 22 | ||
23 | #include <asm/mach-au1x00/au1000.h> | 23 | #include <asm/mach-au1x00/au1000.h> |
24 | #include <asm/mach-pb1x00/pb1550.h> | 24 | #include <asm/mach-pb1x00/pb1550.h> |
25 | #include <asm/mach-db1x00/bcsr.h> | ||
25 | 26 | ||
26 | #include "../platform.h" | 27 | #include "../platform.h" |
27 | 28 | ||
28 | static int __init pb1550_dev_init(void) | 29 | static int __init pb1550_dev_init(void) |
29 | { | 30 | { |
31 | int swapped; | ||
32 | |||
30 | /* Pb1550, like all others, also has statuschange irqs; however they're | 33 | /* Pb1550, like all others, also has statuschange irqs; however they're |
31 | * wired up on one of the Au1550's shared GPIO201_205 line, which also | 34 | * wired up on one of the Au1550's shared GPIO201_205 line, which also |
32 | * services the PCMCIA card interrupts. So we ignore statuschange and | 35 | * services the PCMCIA card interrupts. So we ignore statuschange and |
@@ -58,6 +61,9 @@ static int __init pb1550_dev_init(void) | |||
58 | 0, | 61 | 0, |
59 | 1); | 62 | 1); |
60 | 63 | ||
64 | swapped = bcsr_read(BCSR_STATUS) & BCSR_STATUS_PB1550_SWAPBOOT; | ||
65 | db1x_register_norflash(128 * 1024 * 1024, 4, swapped); | ||
66 | |||
61 | return 0; | 67 | return 0; |
62 | } | 68 | } |
63 | device_initcall(pb1550_dev_init); | 69 | device_initcall(pb1550_dev_init); |