[PATCH] arm/dt: Add ST-Ericsson u8500 device tree support
From: Grant Likely <hidden>
Date: 2011-05-19 23:34:49
Subsystem:
arm port, arm/nomadik/ux500 architectures, the rest · Maintainers:
Russell King, Linus Walleij, Linus Torvalds
Adds support for passing a device tree for booting the u8500 board. Signed-off-by: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org> --- Completely untested. Not even compiled. Per, this should be all you need to change in the kernel to get DT support working on the u8500. g. arch/arm/boot/dts/u8500-hrefv60.dts | 7 +++++++ arch/arm/mach-ux500/Makefile.boot | 1 + arch/arm/mach-ux500/board-mop500.c | 6 ++++++ 3 files changed, 14 insertions(+), 0 deletions(-) create mode 100644 arch/arm/boot/dts/u8500-hrefv60.dts
diff --git a/arch/arm/boot/dts/u8500-hrefv60.dts b/arch/arm/boot/dts/u8500-hrefv60.dts
new file mode 100644
index 0000000..3e12e8b
--- /dev/null
+++ b/arch/arm/boot/dts/u8500-hrefv60.dts@@ -0,0 +1,7 @@ +/dts-v1/; +/include/ "skeleton.dtsi" + +/ { + model = "ST-Ericsson U8500 HREFv60+ Reference Platform"; + compatible = "stericsson,hrefv60plus"; +};
diff --git a/arch/arm/mach-ux500/Makefile.boot b/arch/arm/mach-ux500/Makefile.boot
index c7e75ac..9c83bfb 100644
--- a/arch/arm/mach-ux500/Makefile.boot
+++ b/arch/arm/mach-ux500/Makefile.boot@@ -2,3 +2,4 @@ params_phys-y := 0x00000100 initrd_phys-y := 0x00800000 +dtb-$(CONFIG_MACH_U8500) += u8500-hrefv60.dtb
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c
index cc64bf4..59b7ddb 100644
--- a/arch/arm/mach-ux500/board-mop500.c
+++ b/arch/arm/mach-ux500/board-mop500.c@@ -468,10 +468,16 @@ MACHINE_START(U8500, "ST-Ericsson MOP500 platform") .init_machine = mop500_init_machine, MACHINE_END +static const char *u8500_dt_match[] __initdata = { + "stericsson,hrefv60plus", + NULL +}; + MACHINE_START(HREFV60, "ST-Ericsson U8500 Platform HREFv60+") .boot_params = 0x100, .map_io = u8500_map_io, .init_irq = ux500_init_irq, .timer = &ux500_timer, .init_machine = mop500_init_machine, + .dt_match = u8500_dt_match, MACHINE_END