Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: Kirkwood: Describe iconnect nand in DT.

Define the nand and its partitions in DT and remove them from cmdline

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>

authored by

Arnaud Patard (Rtp) and committed by
Jason Cooper
2eecb477 17ba0226

+31 -11
+31 -1
arch/arm/boot/dts/kirkwood-iconnect.dts
··· 12 12 }; 13 13 14 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 16 linux,initrd-start = <0x4500040>; 17 17 linux,initrd-end = <0x4800000>; 18 18 }; ··· 30 30 clock-frequency = <200000000>; 31 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 64 gpio-leds { 35 65 compatible = "gpio-leds"; 36 66
-10
arch/arm/mach-kirkwood/board-iconnect.c
··· 16 16 #include <linux/of_fdt.h> 17 17 #include <linux/of_irq.h> 18 18 #include <linux/of_platform.h> 19 - #include <linux/mtd/partitions.h> 20 19 #include <linux/mv643xx_eth.h> 21 20 #include <linux/gpio.h> 22 21 #include <asm/mach/arch.h> ··· 41 42 0 42 43 }; 43 44 44 - static struct mtd_partition iconnect_nand_parts[] = { 45 - { 46 - .name = "flash", 47 - .offset = 0, 48 - .size = MTDPART_SIZ_FULL, 49 - }, 50 - }; 51 - 52 45 void __init iconnect_init(void) 53 46 { 54 47 kirkwood_mpp_conf(iconnect_mpp_config); 55 - kirkwood_nand_init(ARRAY_AND_SIZE(iconnect_nand_parts), 25); 56 48 57 49 kirkwood_ehci_init(); 58 50 kirkwood_ge00_init(&iconnect_ge00_data);