diff options
Diffstat (limited to 'arch/arm/mach-kirkwood/rd88f6281-setup.c')
-rw-r--r-- | arch/arm/mach-kirkwood/rd88f6281-setup.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/arch/arm/mach-kirkwood/rd88f6281-setup.c b/arch/arm/mach-kirkwood/rd88f6281-setup.c index 9a0e905d10cd..c3deea5e3cad 100644 --- a/arch/arm/mach-kirkwood/rd88f6281-setup.c +++ b/arch/arm/mach-kirkwood/rd88f6281-setup.c | |||
@@ -11,21 +11,20 @@ | |||
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
14 | #include <linux/pci.h> | ||
15 | #include <linux/irq.h> | 14 | #include <linux/irq.h> |
16 | #include <linux/mtd/physmap.h> | ||
17 | #include <linux/mtd/nand.h> | 15 | #include <linux/mtd/nand.h> |
18 | #include <linux/timer.h> | 16 | #include <linux/mtd/partitions.h> |
19 | #include <linux/ata_platform.h> | 17 | #include <linux/ata_platform.h> |
20 | #include <linux/mv643xx_eth.h> | 18 | #include <linux/mv643xx_eth.h> |
21 | #include <linux/ethtool.h> | 19 | #include <linux/ethtool.h> |
22 | #include <net/dsa.h> | 20 | #include <net/dsa.h> |
23 | #include <asm/mach-types.h> | 21 | #include <asm/mach-types.h> |
24 | #include <asm/mach/arch.h> | 22 | #include <asm/mach/arch.h> |
25 | #include <asm/mach/pci.h> | ||
26 | #include <mach/kirkwood.h> | 23 | #include <mach/kirkwood.h> |
24 | #include <plat/mvsdio.h> | ||
27 | #include <plat/orion_nand.h> | 25 | #include <plat/orion_nand.h> |
28 | #include "common.h" | 26 | #include "common.h" |
27 | #include "mpp.h" | ||
29 | 28 | ||
30 | static struct mtd_partition rd88f6281_nand_parts[] = { | 29 | static struct mtd_partition rd88f6281_nand_parts[] = { |
31 | { | 30 | { |
@@ -91,6 +90,15 @@ static struct mv_sata_platform_data rd88f6281_sata_data = { | |||
91 | .n_ports = 2, | 90 | .n_ports = 2, |
92 | }; | 91 | }; |
93 | 92 | ||
93 | static struct mvsdio_platform_data rd88f6281_mvsdio_data = { | ||
94 | .gpio_card_detect = 28, | ||
95 | }; | ||
96 | |||
97 | static unsigned int rd88f6281_mpp_config[] __initdata = { | ||
98 | MPP28_GPIO, | ||
99 | 0 | ||
100 | }; | ||
101 | |||
94 | static void __init rd88f6281_init(void) | 102 | static void __init rd88f6281_init(void) |
95 | { | 103 | { |
96 | u32 dev, rev; | 104 | u32 dev, rev; |
@@ -99,6 +107,7 @@ static void __init rd88f6281_init(void) | |||
99 | * Basic setup. Needs to be called early. | 107 | * Basic setup. Needs to be called early. |
100 | */ | 108 | */ |
101 | kirkwood_init(); | 109 | kirkwood_init(); |
110 | kirkwood_mpp_conf(rd88f6281_mpp_config); | ||
102 | 111 | ||
103 | kirkwood_ehci_init(); | 112 | kirkwood_ehci_init(); |
104 | 113 | ||
@@ -112,8 +121,8 @@ static void __init rd88f6281_init(void) | |||
112 | } | 121 | } |
113 | kirkwood_ge00_switch_init(&rd88f6281_switch_data, NO_IRQ); | 122 | kirkwood_ge00_switch_init(&rd88f6281_switch_data, NO_IRQ); |
114 | 123 | ||
115 | kirkwood_rtc_init(); | ||
116 | kirkwood_sata_init(&rd88f6281_sata_data); | 124 | kirkwood_sata_init(&rd88f6281_sata_data); |
125 | kirkwood_sdio_init(&rd88f6281_mvsdio_data); | ||
117 | kirkwood_uart0_init(); | 126 | kirkwood_uart0_init(); |
118 | 127 | ||
119 | platform_device_register(&rd88f6281_nand_flash); | 128 | platform_device_register(&rd88f6281_nand_flash); |