[PATCH 1/2] configs: mediatek: define default variables

Julien STEPHAN jstephan at baylibre.com
Wed Sep 7 16:22:50 CEST 2022


From: Jerome Brunet <jbrunet at baylibre.com>

define some default addresses and variables to help distro boot

Signed-off-by: Jerome Brunet <jbrunet at baylibre.com>
Signed-off-by: Alexandre Mergnat <amergnat at baylibre.com>
Signed-off-by: Julien STEPHAN <jstephan at baylibre.com>
---
 include/configs/mt8183.h | 5 +++++
 include/configs/mt8516.h | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/include/configs/mt8183.h b/include/configs/mt8183.h
index c93d70ddf1..f2a0d71556 100644
--- a/include/configs/mt8183.h
+++ b/include/configs/mt8183.h
@@ -26,6 +26,11 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"scriptaddr=0x40000000\0" \
+	"fdt_addr_r=0x44000000\0" \
+	"fdtoverlay_addr_r=0x44c00000\0" \
+	"kernel_addr_r=0x45000000\0" \
+	"ramdisk_addr_r=0x46000000\0" \
+	"fdtfile=" CONFIG_DEFAULT_FDT_FILE ".dtb\0" \
 	BOOTENV
 
 #endif
diff --git a/include/configs/mt8516.h b/include/configs/mt8516.h
index 7228f3e428..a9041aed46 100644
--- a/include/configs/mt8516.h
+++ b/include/configs/mt8516.h
@@ -26,6 +26,11 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"scriptaddr=0x40000000\0" \
+	"fdt_addr_r=0x44000000\0" \
+	"fdtoverlay_addr_r=0x44c00000\0" \
+	"kernel_addr_r=0x45000000\0" \
+	"ramdisk_addr_r=0x46000000\0" \
+	"fdtfile=" CONFIG_DEFAULT_FDT_FILE ".dtb\0" \
 	BOOTENV
 
 #endif
-- 
2.37.1



More information about the U-Boot mailing list