]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
stv0991: fdt: add stv0991 device tree
authorVikas Manocha <vikas.manocha@st.com>
Sun, 3 May 2015 21:10:34 +0000 (14:10 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:38:43 +0000 (22:38 +0200)
This patch adds device tree for the ST Micro stv0991 board & enables
device tree control. Progressively device tree support for the drivers
being used will also be added.

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/Makefile
arch/arm/dts/stv0991.dts [new file with mode: 0644]
configs/stv0991_defconfig
include/configs/stv0991.h

index 6a01759791110affff8f48447657a63cc8c9641c..267fd179060bf935cd64a1703c791c65addf87b9 100644 (file)
@@ -53,6 +53,7 @@ dtb-$(CONFIG_ARCH_SOCFPGA) +=                         \
        socfpga_arria5_socdk.dtb                        \
        socfpga_cyclone5_socdk.dtb                      \
        socfpga_cyclone5_socrates.dtb
+dtb-$(CONFIG_TARGET_STV0991) += stv0991.dtb
 
 dtb-$(CONFIG_LS102XA) += ls1021a-qds.dtb \
        ls1021a-twr.dtb
diff --git a/arch/arm/dts/stv0991.dts b/arch/arm/dts/stv0991.dts
new file mode 100644 (file)
index 0000000..b25c48b
--- /dev/null
@@ -0,0 +1,23 @@
+/dts-v1/;
+
+/ {
+       model = "ST STV0991 application board";
+       compatible = "st,stv0991";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       chosen {
+               stdout-path = &uart0;
+       };
+
+       memory {
+               device_type="memory";
+               reg = <0x0 0x198000>;
+       };
+
+       uart0: serial@0x80406000 {
+               compatible = "arm,pl011", "arm,primecell";
+               reg = <0x80406000 0x1000>;
+               clock = <2700000>;
+       };
+};
index 76ba41bf5f7b209ec476d47cb50365e3c0ec132b..d9edc063018aaa0428564c913b42ea7e39013750 100644 (file)
@@ -5,3 +5,4 @@ CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_NETDEVICES=y
 CONFIG_NET=y
+CONFIG_DEFAULT_DEVICE_TREE="stv0991"
index ab1e61cf8961a9af825fc6d3d1ec4d753986df68..e75e6616ca9bbcd83d6f0dc573489d4e487ff06f 100644 (file)
@@ -79,5 +79,7 @@
 #define CONFIG_AUTOBOOT_STOP_STR               " "
 #define CONFIG_AUTOBOOT_PROMPT                 \
        "Hit SPACE in %d seconds to stop autoboot.\n", bootdelay
-
+#define CONFIG_OF_SEPARATE
+#define CONFIG_OF_CONTROL
+#define CONFIG_OF_LIBFDT
 #endif /* __CONFIG_H */