1 From c174d2250e402399ad7dbdd57d51883d8804bba0 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Mon, 15 Jul 2013 00:40:37 +0200
4 Subject: [PATCH 31/33] owrt: MIPS: add OWRTDTB secion
6 Signed-off-by: John Crispin <blogic@openwrt.org>
8 arch/mips/kernel/head.S | 3 +++
9 arch/mips/ralink/Makefile | 2 +-
10 arch/mips/ralink/of.c | 4 +++-
11 3 files changed, 7 insertions(+), 2 deletions(-)
13 --- a/arch/mips/kernel/head.S
14 +++ b/arch/mips/kernel/head.S
15 @@ -107,6 +107,9 @@ EXPORT(__image_cmdline)
17 #endif /* CONFIG_IMAGE_CMDLINE_HACK */
24 NESTED(kernel_entry, 16, sp) # kernel entry point
25 --- a/arch/mips/ralink/Makefile
26 +++ b/arch/mips/ralink/Makefile
27 @@ -26,4 +26,4 @@ obj-$(CONFIG_EARLY_PRINTK) += early_prin
29 obj-$(CONFIG_DEBUG_FS) += bootrom.o
33 --- a/arch/mips/ralink/of.c
34 +++ b/arch/mips/ralink/of.c
35 @@ -91,6 +91,8 @@ static int __init early_init_dt_find_mem
39 +extern struct boot_param_header __image_dtb;
41 void __init plat_mem_setup(void)
43 set_io_port_base(KSEG1);
44 @@ -99,7 +101,7 @@ void __init plat_mem_setup(void)
45 * Load the builtin devicetree. This causes the chosen node to be
46 * parsed resulting in our memory appearing
48 - __dt_setup_arch(&__dtb_start);
49 + __dt_setup_arch(&__image_dtb);
51 strlcpy(arcs_cmdline, boot_command_line, COMMAND_LINE_SIZE);