[PATCH 2/3] board: mediatek: Use CONFIG_DEFAULT_FDT_FILE for default environment

David Woodhouse dwmw2 at infradead.org
Mon Jul 13 00:33:02 CEST 2020


Rather than hard-coding it to the Banana Pi R2.

Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 configs/mt7623n_bpir2_defconfig | 2 +-
 include/configs/mt7623.h        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configs/mt7623n_bpir2_defconfig b/configs/mt7623n_bpir2_defconfig
index 6b9fbd7e22..918c52d608 100644
--- a/configs/mt7623n_bpir2_defconfig
+++ b/configs/mt7623n_bpir2_defconfig
@@ -12,7 +12,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_BOOTDELAY=3
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
-CONFIG_DEFAULT_FDT_FILE="mt7623n-bananapi-bpi-r2"
+CONFIG_DEFAULT_FDT_FILE="mt7623n-bananapi-bpi-r2.dtb"
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_CMD_BOOTMENU=y
diff --git a/include/configs/mt7623.h b/include/configs/mt7623.h
index fe436cca38..33e07ed646 100644
--- a/include/configs/mt7623.h
+++ b/include/configs/mt7623.h
@@ -51,7 +51,7 @@
 	"fdt_high=" FDT_HIGH "\0"			\
 	"kernel_addr_r=0x84000000\0"			\
 	"fdt_addr_r=" FDT_HIGH "\0"			\
-	"fdtfile=mt7623n-bananapi-bpi-r2.dtb" "\0"
+	"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0"
 
 /* Ethernet */
 #define CONFIG_IPADDR			192.168.1.1
-- 
2.26.2



More information about the U-Boot mailing list