[U-Boot] [PATCH 4/6] ARM: dts: DRA7: Add generic dts for spl

Lokesh Vutla lokeshvutla at ti.com
Wed Feb 8 12:33:35 UTC 2017


Add a generic dts file for spl that is used by all
DRA7 based platforms.

Signed-off-by: Lokesh Vutla <lokeshvutla at ti.com>
---
 arch/arm/dts/Makefile             |  2 +-
 arch/arm/dts/dra7-generic-spl.dts | 50 +++++++++++++++++++++++++++++++++++++++
 configs/dra7xx_evm_defconfig      |  2 +-
 configs/dra7xx_hs_evm_defconfig   |  2 +-
 4 files changed, 53 insertions(+), 3 deletions(-)
 create mode 100644 arch/arm/dts/dra7-generic-spl.dts

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 8945771f64..cc8a8426b6 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -151,7 +151,7 @@ dtb-$(CONFIG_ARCH_SOCFPGA) +=				\
 	socfpga_cyclone5_vining_fpga.dtb
 
 dtb-$(CONFIG_TARGET_DRA7XX_EVM) += dra72-evm.dtb dra7-evm.dtb	\
-	dra72-evm-revc.dtb dra71-evm.dtb
+	dra72-evm-revc.dtb dra71-evm.dtb dra7-generic-spl.dtb
 dtb-$(CONFIG_TARGET_AM57XX_EVM) += am57xx-beagle-x15.dtb \
 	am57xx-generic-spl.dtb \
 	am57xx-beagle-x15-revb1.dtb \
diff --git a/arch/arm/dts/dra7-generic-spl.dts b/arch/arm/dts/dra7-generic-spl.dts
new file mode 100644
index 0000000000..9882e5b427
--- /dev/null
+++ b/arch/arm/dts/dra7-generic-spl.dts
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ * Based on "omap4.dtsi"
+ */
+
+#include "dra7-evm.dts"
+
+/{
+	ocp {
+		u-boot,dm-pre-reloc;
+	};
+};
+
+/*
+&ocp {
+	u-boot,dm-pre-reloc;
+};
+*/
+
+&uart1 {
+	u-boot,dm-pre-reloc;
+};
+
+&mmc1 {
+	u-boot,dm-pre-reloc;
+};
+
+&mmc2 {
+	u-boot,dm-pre-reloc;
+};
+
+&l4_wkup {
+	u-boot,dm-pre-reloc;
+};
+
+&scm_wkup {
+	u-boot,dm-pre-reloc;
+};
+
+&qspi {
+	u-boot,dm-pre-reloc;
+
+	m25p80 at 0 {
+		u-boot,dm-pre-reloc;
+	};
+};
diff --git a/configs/dra7xx_evm_defconfig b/configs/dra7xx_evm_defconfig
index 26b26cc4cd..8e0b1681a6 100644
--- a/configs/dra7xx_evm_defconfig
+++ b/configs/dra7xx_evm_defconfig
@@ -6,7 +6,7 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
 CONFIG_ARMV7_LPAE=y
 CONFIG_SPL_STACK_R_ADDR=0x82000000
-CONFIG_DEFAULT_DEVICE_TREE="dra7-evm"
+CONFIG_DEFAULT_DEVICE_TREE="dra7-generic-spl"
 CONFIG_FIT=y
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_OF_BOARD_SETUP=y
diff --git a/configs/dra7xx_hs_evm_defconfig b/configs/dra7xx_hs_evm_defconfig
index 244940cd6c..ef1f9d348e 100644
--- a/configs/dra7xx_hs_evm_defconfig
+++ b/configs/dra7xx_hs_evm_defconfig
@@ -10,7 +10,7 @@ CONFIG_TI_SECURE_EMIF_PROTECTED_REGION_SIZE=0x01c00000
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
 CONFIG_SPL_STACK_R_ADDR=0x82000000
-CONFIG_DEFAULT_DEVICE_TREE="dra7-evm"
+CONFIG_DEFAULT_DEVICE_TREE="dra7-generic-spl"
 CONFIG_FIT=y
 CONFIG_FIT_IMAGE_POST_PROCESS=y
 CONFIG_SPL_LOAD_FIT=y
-- 
2.11.0



More information about the U-Boot mailing list