diff options
| -rw-r--r-- | arch/arm/boot/dts/kirkwood-iconnect.dts | 32 | ||||
| -rw-r--r-- | arch/arm/mach-kirkwood/board-iconnect.c | 10 |
2 files changed, 31 insertions, 11 deletions
diff --git a/arch/arm/boot/dts/kirkwood-iconnect.dts b/arch/arm/boot/dts/kirkwood-iconnect.dts index 3a5219cad9fe..d97cd9d4753e 100644 --- a/arch/arm/boot/dts/kirkwood-iconnect.dts +++ b/arch/arm/boot/dts/kirkwood-iconnect.dts | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | }; | 12 | }; |
| 13 | 13 | ||
| 14 | chosen { | 14 | chosen { |
| 15 | bootargs = "console=ttyS0,115200n8 earlyprintk mtdparts=orion_nand:0xc0000@0x0(uboot),0x20000@0xa0000(env),0x300000@0x100000(zImage),0x300000@0x540000(initrd),0x1f400000@0x980000(boot)"; | 15 | bootargs = "console=ttyS0,115200n8 earlyprintk"; |
| 16 | linux,initrd-start = <0x4500040>; | 16 | linux,initrd-start = <0x4500040>; |
| 17 | linux,initrd-end = <0x4800000>; | 17 | linux,initrd-end = <0x4800000>; |
| 18 | }; | 18 | }; |
| @@ -30,7 +30,37 @@ | |||
| 30 | clock-frequency = <200000000>; | 30 | clock-frequency = <200000000>; |
| 31 | status = "ok"; | 31 | status = "ok"; |
| 32 | }; | 32 | }; |
| 33 | |||
| 34 | nand@3000000 { | ||
| 35 | status = "okay"; | ||
| 36 | |||
| 37 | partition@0 { | ||
| 38 | label = "uboot"; | ||
| 39 | reg = <0x0000000 0xc0000>; | ||
| 40 | }; | ||
| 41 | |||
| 42 | partition@a0000 { | ||
| 43 | label = "env"; | ||
| 44 | reg = <0xa0000 0x20000>; | ||
| 45 | }; | ||
| 46 | |||
| 47 | partition@100000 { | ||
| 48 | label = "zImage"; | ||
| 49 | reg = <0x100000 0x300000>; | ||
| 50 | }; | ||
| 51 | |||
| 52 | partition@540000 { | ||
| 53 | label = "initrd"; | ||
| 54 | reg = <0x540000 0x300000>; | ||
| 55 | }; | ||
| 56 | |||
| 57 | partition@980000 { | ||
| 58 | label = "boot"; | ||
| 59 | reg = <0x980000 0x1f400000>; | ||
| 60 | }; | ||
| 61 | }; | ||
| 33 | }; | 62 | }; |
| 63 | |||
| 34 | gpio-leds { | 64 | gpio-leds { |
| 35 | compatible = "gpio-leds"; | 65 | compatible = "gpio-leds"; |
| 36 | 66 | ||
diff --git a/arch/arm/mach-kirkwood/board-iconnect.c b/arch/arm/mach-kirkwood/board-iconnect.c index 51728db92dc5..d084b1e2943a 100644 --- a/arch/arm/mach-kirkwood/board-iconnect.c +++ b/arch/arm/mach-kirkwood/board-iconnect.c | |||
| @@ -16,7 +16,6 @@ | |||
| 16 | #include <linux/of_fdt.h> | 16 | #include <linux/of_fdt.h> |
| 17 | #include <linux/of_irq.h> | 17 | #include <linux/of_irq.h> |
| 18 | #include <linux/of_platform.h> | 18 | #include <linux/of_platform.h> |
| 19 | #include <linux/mtd/partitions.h> | ||
| 20 | #include <linux/mv643xx_eth.h> | 19 | #include <linux/mv643xx_eth.h> |
| 21 | #include <linux/gpio.h> | 20 | #include <linux/gpio.h> |
| 22 | #include <asm/mach/arch.h> | 21 | #include <asm/mach/arch.h> |
| @@ -42,18 +41,9 @@ static unsigned int iconnect_mpp_config[] __initdata = { | |||
| 42 | 0 | 41 | 0 |
| 43 | }; | 42 | }; |
| 44 | 43 | ||
| 45 | static struct mtd_partition iconnect_nand_parts[] = { | ||
| 46 | { | ||
| 47 | .name = "flash", | ||
| 48 | .offset = 0, | ||
| 49 | .size = MTDPART_SIZ_FULL, | ||
| 50 | }, | ||
| 51 | }; | ||
| 52 | |||
| 53 | void __init iconnect_init(void) | 44 | void __init iconnect_init(void) |
| 54 | { | 45 | { |
| 55 | kirkwood_mpp_conf(iconnect_mpp_config); | 46 | kirkwood_mpp_conf(iconnect_mpp_config); |
| 56 | kirkwood_nand_init(ARRAY_AND_SIZE(iconnect_nand_parts), 25); | ||
| 57 | 47 | ||
| 58 | kirkwood_ehci_init(); | 48 | kirkwood_ehci_init(); |
| 59 | kirkwood_ge00_init(&iconnect_ge00_data); | 49 | kirkwood_ge00_init(&iconnect_ge00_data); |
