diff options
Diffstat (limited to 'arch/arm/mach-kirkwood/rd88f6281-setup.c')
| -rw-r--r-- | arch/arm/mach-kirkwood/rd88f6281-setup.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/arch/arm/mach-kirkwood/rd88f6281-setup.c b/arch/arm/mach-kirkwood/rd88f6281-setup.c index 31e996d65fc4..31708ddbc83e 100644 --- a/arch/arm/mach-kirkwood/rd88f6281-setup.c +++ b/arch/arm/mach-kirkwood/rd88f6281-setup.c | |||
| @@ -12,7 +12,6 @@ | |||
| 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/irq.h> | 14 | #include <linux/irq.h> |
| 15 | #include <linux/mtd/nand.h> | ||
| 16 | #include <linux/mtd/partitions.h> | 15 | #include <linux/mtd/partitions.h> |
| 17 | #include <linux/ata_platform.h> | 16 | #include <linux/ata_platform.h> |
| 18 | #include <linux/mv643xx_eth.h> | 17 | #include <linux/mv643xx_eth.h> |
| @@ -22,7 +21,6 @@ | |||
| 22 | #include <asm/mach/arch.h> | 21 | #include <asm/mach/arch.h> |
| 23 | #include <mach/kirkwood.h> | 22 | #include <mach/kirkwood.h> |
| 24 | #include <plat/mvsdio.h> | 23 | #include <plat/mvsdio.h> |
| 25 | #include <plat/orion_nand.h> | ||
| 26 | #include "common.h" | 24 | #include "common.h" |
| 27 | #include "mpp.h" | 25 | #include "mpp.h" |
| 28 | 26 | ||
| @@ -42,32 +40,6 @@ static struct mtd_partition rd88f6281_nand_parts[] = { | |||
| 42 | }, | 40 | }, |
| 43 | }; | 41 | }; |
| 44 | 42 | ||
| 45 | static struct resource rd88f6281_nand_resource = { | ||
| 46 | .flags = IORESOURCE_MEM, | ||
| 47 | .start = KIRKWOOD_NAND_MEM_PHYS_BASE, | ||
| 48 | .end = KIRKWOOD_NAND_MEM_PHYS_BASE + | ||
| 49 | KIRKWOOD_NAND_MEM_SIZE - 1, | ||
| 50 | }; | ||
| 51 | |||
| 52 | static struct orion_nand_data rd88f6281_nand_data = { | ||
| 53 | .parts = rd88f6281_nand_parts, | ||
| 54 | .nr_parts = ARRAY_SIZE(rd88f6281_nand_parts), | ||
| 55 | .cle = 0, | ||
| 56 | .ale = 1, | ||
| 57 | .width = 8, | ||
| 58 | .chip_delay = 25, | ||
| 59 | }; | ||
| 60 | |||
| 61 | static struct platform_device rd88f6281_nand_flash = { | ||
| 62 | .name = "orion_nand", | ||
| 63 | .id = -1, | ||
| 64 | .dev = { | ||
| 65 | .platform_data = &rd88f6281_nand_data, | ||
| 66 | }, | ||
| 67 | .resource = &rd88f6281_nand_resource, | ||
| 68 | .num_resources = 1, | ||
| 69 | }; | ||
| 70 | |||
| 71 | static struct mv643xx_eth_platform_data rd88f6281_ge00_data = { | 43 | static struct mv643xx_eth_platform_data rd88f6281_ge00_data = { |
| 72 | .phy_addr = MV643XX_ETH_PHY_NONE, | 44 | .phy_addr = MV643XX_ETH_PHY_NONE, |
| 73 | .speed = SPEED_1000, | 45 | .speed = SPEED_1000, |
| @@ -114,6 +86,7 @@ static void __init rd88f6281_init(void) | |||
| 114 | kirkwood_init(); | 86 | kirkwood_init(); |
| 115 | kirkwood_mpp_conf(rd88f6281_mpp_config); | 87 | kirkwood_mpp_conf(rd88f6281_mpp_config); |
| 116 | 88 | ||
| 89 | kirkwood_nand_init(ARRAY_AND_SIZE(rd88f6281_nand_parts), 25); | ||
| 117 | kirkwood_ehci_init(); | 90 | kirkwood_ehci_init(); |
| 118 | 91 | ||
| 119 | kirkwood_ge00_init(&rd88f6281_ge00_data); | 92 | kirkwood_ge00_init(&rd88f6281_ge00_data); |
| @@ -129,8 +102,6 @@ static void __init rd88f6281_init(void) | |||
| 129 | kirkwood_sata_init(&rd88f6281_sata_data); | 102 | kirkwood_sata_init(&rd88f6281_sata_data); |
| 130 | kirkwood_sdio_init(&rd88f6281_mvsdio_data); | 103 | kirkwood_sdio_init(&rd88f6281_mvsdio_data); |
| 131 | kirkwood_uart0_init(); | 104 | kirkwood_uart0_init(); |
| 132 | |||
| 133 | platform_device_register(&rd88f6281_nand_flash); | ||
| 134 | } | 105 | } |
| 135 | 106 | ||
| 136 | static int __init rd88f6281_pci_init(void) | 107 | static int __init rd88f6281_pci_init(void) |
