]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: MCR3000: Activate CONFIG_DM and CONFIG_OF_CONTROL
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 21 Nov 2018 08:51:43 +0000 (08:51 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 3 Dec 2018 15:44:10 +0000 (10:44 -0500)
Add mcr3000 device tree and activate CONFIG_DM and CONFIG_OF_CONTROL

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
arch/powerpc/dts/Makefile
arch/powerpc/dts/mcr3000.dts [new file with mode: 0644]
board/cssi/MCR3000/u-boot.lds
configs/MCR3000_defconfig

index a19aa56300dffc0fa5a164b1e8fa056cb58c6dae..172bed4c2029dde3234990ad708f76557e8af9bc 100644 (file)
@@ -1,6 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0+
 
 dtb-$(CONFIG_TARGET_T2080QDS) += t2080qds.dtb
+dtb-$(CONFIG_MCR3000) += mcr3000.dtb
 
 targets += $(dtb-y)
 
diff --git a/arch/powerpc/dts/mcr3000.dts b/arch/powerpc/dts/mcr3000.dts
new file mode 100644 (file)
index 0000000..e4b2228
--- /dev/null
@@ -0,0 +1,12 @@
+/*
+ * MCR3000 Device Tree Source
+ *
+ * Copyright 2017 CS Systemes d'Information
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+/dts-v1/;
+
+/ {
+};
index a32c0e721e8e56fd3440752221b354ec805ffc3b..447ffded814f27b36dd0796a9320491f9012618b 100644 (file)
@@ -69,6 +69,12 @@ SECTIONS
        __ex_table : { *(__ex_table) }
        __stop___ex_table = .;
 
+       /*
+        * _end - This is end of u-boot.bin image.
+        * dtb will be appended here to make u-boot-dtb.bin
+        */
+       _end = .;
+
        . = ALIGN(4096);
        __init_begin = .;
        .text.init : { *(.text.init) }
index 29a60e3a9863a277572d5bb799add696b8d404b0..6d7dda82a21a763505f83bdd36de2b653d9c4c50 100644 (file)
@@ -73,3 +73,6 @@ CONFIG_MPC8XX_FEC=y
 CONFIG_SHA256=y
 CONFIG_LZMA=y
 CONFIG_OF_LIBFDT=y
+CONFIG_DM=y
+CONFIG_OF_CONTROL=y
+CONFIG_DEFAULT_DEVICE_TREE="mcr3000"