Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d468b6d authored by Jason Cooper's avatar Jason Cooper Committed by Arnd Bergmann
Browse files

ARM: kirkwood: add dreamplug (fdt) support.



Initially, copied guruplug-setup.c and did s/guruplug/dreamplug/g.
Then, switched to SPI based NOR flash.

After talking to Arnd Bergman, chose an incremental approach to adding
devicetree support.  First, we use the dtb to tell us we are on the
dreamplug, then we gradually port over drivers.

Driver porting will start with the uart (see next patch), and progress
from there.  Possibly, spi/flash/partitions will be next.

When done, board-dt.c will no longer be dreamplug specific, and dt's can
be made for the other kirkwood boards.

Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarNicolas Pitre <nico@linaro.org>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent d65b4e98
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
/dts-v1/;

/include/ "kirkwood.dtsi"

/ {
	model = "Globalscale Technologies Dreamplug";
	compatible = "globalscale,dreamplug-003-ds2001", "globalscale,dreamplug", "marvell,kirkwood-88f6281", "marvell,kirkwood";

	memory {
		device_type = "memory";
		reg = <0x00000000 0x20000000>;
	};

	chosen {
		bootargs = "console=ttyS0,115200n8 earlyprintk";
	};

};
+6 −0
Original line number Diff line number Diff line
/include/ "skeleton.dtsi"

/ {
	compatible = "marvell,kirkwood";
};
+14 −0
Original line number Diff line number Diff line
@@ -44,6 +44,20 @@ config MACH_GURUPLUG
	  Say 'Y' here if you want your kernel to support the
	  Marvell GuruPlug Reference Board.

config ARCH_KIRKWOOD_DT
	bool "Marvell Kirkwood Flattened Device Tree"
	select USE_OF
	help
	  Say 'Y' here if you want your kernel to support the
	  Marvell Kirkwood using flattened device tree.

config MACH_DREAMPLUG_DT
	bool "Marvell DreamPlug (Flattened Device Tree)"
	select ARCH_KIRKWOOD_DT
	help
	  Say 'Y' here if you want your kernel to support the
	  Marvell DreamPlug (Flattened Device Tree).

config MACH_TS219
	bool "QNAP TS-110, TS-119, TS-119P+, TS-210, TS-219, TS-219P and TS-219P+ Turbo NAS"
	help
+1 −0
Original line number Diff line number Diff line
@@ -20,3 +20,4 @@ obj-$(CONFIG_MACH_NET5BIG_V2) += netxbig_v2-setup.o lacie_v2-common.o
obj-$(CONFIG_MACH_T5325)		+= t5325-setup.o

obj-$(CONFIG_CPU_IDLE)			+= cpuidle.o
obj-$(CONFIG_ARCH_KIRKWOOD_DT)		+= board-dt.o
+2 −0
Original line number Diff line number Diff line
   zreladdr-y	+= 0x00008000
params_phys-y	:= 0x00000100
initrd_phys-y	:= 0x00800000

dtb-$(CONFIG_MACH_DREAMPLUG_DT) += kirkwood-dreamplug.dtb
Loading