diff options
| -rw-r--r-- | arch/arm/boot/dts/kirkwood-dreamplug.dts | 29 | ||||
| -rw-r--r-- | arch/arm/mach-kirkwood/board-dreamplug.c | 41 |
2 files changed, 29 insertions, 41 deletions
diff --git a/arch/arm/boot/dts/kirkwood-dreamplug.dts b/arch/arm/boot/dts/kirkwood-dreamplug.dts index 78b0f06a09a2..ab8a8555329b 100644 --- a/arch/arm/boot/dts/kirkwood-dreamplug.dts +++ b/arch/arm/boot/dts/kirkwood-dreamplug.dts | |||
| @@ -20,5 +20,34 @@ | |||
| 20 | clock-frequency = <200000000>; | 20 | clock-frequency = <200000000>; |
| 21 | status = "ok"; | 21 | status = "ok"; |
| 22 | }; | 22 | }; |
| 23 | |||
| 24 | spi@10600 { | ||
| 25 | status = "okay"; | ||
| 26 | |||
| 27 | m25p40@0 { | ||
| 28 | #address-cells = <1>; | ||
| 29 | #size-cells = <1>; | ||
| 30 | compatible = "mx25l1606e"; | ||
| 31 | reg = <0>; | ||
| 32 | spi-max-frequency = <50000000>; | ||
| 33 | mode = <0>; | ||
| 34 | |||
| 35 | partition@0 { | ||
| 36 | reg = <0x0 0x80000>; | ||
| 37 | label = "u-boot"; | ||
| 38 | }; | ||
| 39 | |||
| 40 | partition@100000 { | ||
| 41 | reg = <0x100000 0x10000>; | ||
| 42 | label = "u-boot env"; | ||
| 43 | }; | ||
| 44 | |||
| 45 | partition@180000 { | ||
| 46 | reg = <0x180000 0x10000>; | ||
| 47 | label = "dtb"; | ||
| 48 | }; | ||
| 49 | }; | ||
| 50 | }; | ||
| 23 | }; | 51 | }; |
| 52 | |||
| 24 | }; | 53 | }; |
diff --git a/arch/arm/mach-kirkwood/board-dreamplug.c b/arch/arm/mach-kirkwood/board-dreamplug.c index 55e357ab2923..eb0e4d5ea668 100644 --- a/arch/arm/mach-kirkwood/board-dreamplug.c +++ b/arch/arm/mach-kirkwood/board-dreamplug.c | |||
| @@ -14,7 +14,6 @@ | |||
| 14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
| 15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
| 16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
| 17 | #include <linux/mtd/partitions.h> | ||
| 18 | #include <linux/ata_platform.h> | 17 | #include <linux/ata_platform.h> |
| 19 | #include <linux/mv643xx_eth.h> | 18 | #include <linux/mv643xx_eth.h> |
| 20 | #include <linux/of.h> | 19 | #include <linux/of.h> |
| @@ -36,42 +35,6 @@ | |||
| 36 | #include "common.h" | 35 | #include "common.h" |
| 37 | #include "mpp.h" | 36 | #include "mpp.h" |
| 38 | 37 | ||
| 39 | struct mtd_partition dreamplug_partitions[] = { | ||
| 40 | { | ||
| 41 | .name = "u-boot", | ||
| 42 | .size = SZ_512K, | ||
| 43 | .offset = 0, | ||
| 44 | }, | ||
| 45 | { | ||
| 46 | .name = "u-boot env", | ||
| 47 | .size = SZ_64K, | ||
| 48 | .offset = SZ_512K + SZ_512K, | ||
| 49 | }, | ||
| 50 | { | ||
| 51 | .name = "dtb", | ||
| 52 | .size = SZ_64K, | ||
| 53 | .offset = SZ_512K + SZ_512K + SZ_512K, | ||
| 54 | }, | ||
| 55 | }; | ||
| 56 | |||
| 57 | static const struct flash_platform_data dreamplug_spi_slave_data = { | ||
| 58 | .type = "mx25l1606e", | ||
| 59 | .name = "spi_flash", | ||
| 60 | .parts = dreamplug_partitions, | ||
| 61 | .nr_parts = ARRAY_SIZE(dreamplug_partitions), | ||
| 62 | }; | ||
| 63 | |||
| 64 | static struct spi_board_info __initdata dreamplug_spi_slave_info[] = { | ||
| 65 | { | ||
| 66 | .modalias = "m25p80", | ||
| 67 | .platform_data = &dreamplug_spi_slave_data, | ||
| 68 | .irq = -1, | ||
| 69 | .max_speed_hz = 50000000, | ||
| 70 | .bus_num = 0, | ||
| 71 | .chip_select = 0, | ||
| 72 | }, | ||
| 73 | }; | ||
| 74 | |||
| 75 | static struct mv643xx_eth_platform_data dreamplug_ge00_data = { | 38 | static struct mv643xx_eth_platform_data dreamplug_ge00_data = { |
| 76 | .phy_addr = MV643XX_ETH_PHY_ADDR(0), | 39 | .phy_addr = MV643XX_ETH_PHY_ADDR(0), |
| 77 | }; | 40 | }; |
| @@ -137,10 +100,6 @@ void __init dreamplug_init(void) | |||
| 137 | */ | 100 | */ |
| 138 | kirkwood_mpp_conf(dreamplug_mpp_config); | 101 | kirkwood_mpp_conf(dreamplug_mpp_config); |
| 139 | 102 | ||
| 140 | spi_register_board_info(dreamplug_spi_slave_info, | ||
| 141 | ARRAY_SIZE(dreamplug_spi_slave_info)); | ||
| 142 | kirkwood_spi_init(); | ||
| 143 | |||
| 144 | kirkwood_ehci_init(); | 103 | kirkwood_ehci_init(); |
| 145 | kirkwood_ge00_init(&dreamplug_ge00_data); | 104 | kirkwood_ge00_init(&dreamplug_ge00_data); |
| 146 | kirkwood_ge01_init(&dreamplug_ge01_data); | 105 | kirkwood_ge01_init(&dreamplug_ge01_data); |
