diff mbox series

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

Message ID 20200712223303.2094457-2-dwmw2@infradead.org
State Accepted
Commit 368ac3f205deddec058a2757556786a9176d7fb7
Headers show
Series [1/3] board: mediatek: fix mmc_get_boot_dev() for platforms without external SD | expand

Commit Message

David Woodhouse July 12, 2020, 10:33 p.m. UTC
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(-)

Comments

Tom Rini July 29, 2020, 1:45 p.m. UTC | #1
On Sun, Jul 12, 2020 at 11:33:02PM +0100, David Woodhouse wrote:

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

> 

> Signed-off-by: David Woodhouse <dwmw2@infradead.org>


Applied to u-boot/master, thanks!

-- 
Tom
diff mbox series

Patch

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