[openwrt/openwrt] uboot-mediatek: adjust the reserved memory regions
LEDE Commits
lede-commits at lists.infradead.org
Sun Aug 24 04:58:39 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/b286fd8a397f1dad36cc66551ffb8904e4915e17
commit b286fd8a397f1dad36cc66551ffb8904e4915e17
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Sun Aug 10 20:16:21 2025 +0800
uboot-mediatek: adjust the reserved memory regions
* Increase mt7986 ATF reserved memory to 256 kiB to follow the linux
kernel and Trusted Firmware-A changes.
* Remove unnecessary reserved memory region for the WiFi hardware. The
u-boot can not drive the WiFi hardware. Hence we don't need to keep
this memory region.
* Remove useless node labels and update comments.
Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19741
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
.../patches/103-01-mt7622-enable-pstore.patch | 4 ++--
.../patches/103-02-mt7981-enable-pstore.patch | 11 +++--------
.../patches/103-03-mt7986-enable-pstore.patch | 13 ++++---------
.../patches/103-04-mt7988-enable-pstore.patch | 4 ++--
4 files changed, 11 insertions(+), 21 deletions(-)
diff --git a/package/boot/uboot-mediatek/patches/103-01-mt7622-enable-pstore.patch b/package/boot/uboot-mediatek/patches/103-01-mt7622-enable-pstore.patch
index f085615e70..ac7a6b2f1f 100644
--- a/package/boot/uboot-mediatek/patches/103-01-mt7622-enable-pstore.patch
+++ b/package/boot/uboot-mediatek/patches/103-01-mt7622-enable-pstore.patch
@@ -21,8 +21,8 @@
+ record-size = <0x1000>;
+ };
+
-+ /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
-+ secmon_reserved: secmon at 43000000 {
++ /* 192 KiB reserved for ARM Trusted Firmware (BL31 + BL32) */
++ secmon at 43000000 {
+ reg = <0x43000000 0x30000>;
+ no-map;
+ };
diff --git a/package/boot/uboot-mediatek/patches/103-02-mt7981-enable-pstore.patch b/package/boot/uboot-mediatek/patches/103-02-mt7981-enable-pstore.patch
index 8eaa91f53f..c822585a27 100644
--- a/package/boot/uboot-mediatek/patches/103-02-mt7981-enable-pstore.patch
+++ b/package/boot/uboot-mediatek/patches/103-02-mt7981-enable-pstore.patch
@@ -1,6 +1,6 @@
--- a/arch/arm/dts/mt7981.dtsi
+++ b/arch/arm/dts/mt7981.dtsi
-@@ -33,6 +33,35 @@
+@@ -33,6 +33,30 @@
};
};
@@ -21,16 +21,11 @@
+ record-size = <0x1000>;
+ };
+
-+ /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
-+ secmon_reserved: secmon at 43000000 {
++ /* 192 KiB reserved for ARM Trusted Firmware (BL31 + BL32) */
++ secmon at 43000000 {
+ reg = <0x43000000 0x30000>;
+ no-map;
+ };
-+
-+ wmcpu_emi: wmcpu-reserved at 4fc00000 {
-+ no-map;
-+ reg = <0x4fc00000 0x00100000>;
-+ };
+ };
+
gpt_clk: gpt_dummy20m {
diff --git a/package/boot/uboot-mediatek/patches/103-03-mt7986-enable-pstore.patch b/package/boot/uboot-mediatek/patches/103-03-mt7986-enable-pstore.patch
index 01ad0f919d..dcbf7c8e7a 100644
--- a/package/boot/uboot-mediatek/patches/103-03-mt7986-enable-pstore.patch
+++ b/package/boot/uboot-mediatek/patches/103-03-mt7986-enable-pstore.patch
@@ -1,6 +1,6 @@
--- a/arch/arm/dts/mt7986.dtsi
+++ b/arch/arm/dts/mt7986.dtsi
-@@ -50,6 +50,35 @@
+@@ -50,6 +50,30 @@
};
};
@@ -21,16 +21,11 @@
+ record-size = <0x1000>;
+ };
+
-+ /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
-+ secmon_reserved: secmon at 43000000 {
-+ reg = <0x43000000 0x30000>;
++ /* 256 KiB reserved for ARM Trusted Firmware (BL31 + BL32) */
++ secmon at 43000000 {
++ reg = <0x43000000 0x40000>;
+ no-map;
+ };
-+
-+ wmcpu_emi: wmcpu-reserved at 4fc00000 {
-+ no-map;
-+ reg = <0x4fc00000 0x00100000>;
-+ };
+ };
+
dummy_clk: dummy12m {
diff --git a/package/boot/uboot-mediatek/patches/103-04-mt7988-enable-pstore.patch b/package/boot/uboot-mediatek/patches/103-04-mt7988-enable-pstore.patch
index 1f339d4b5b..68372736e5 100644
--- a/package/boot/uboot-mediatek/patches/103-04-mt7988-enable-pstore.patch
+++ b/package/boot/uboot-mediatek/patches/103-04-mt7988-enable-pstore.patch
@@ -21,8 +21,8 @@
+ record-size = <0x1000>;
+ };
+
-+ /* 320 KiB reserved for ARM Trusted Firmware (BL31+BL32) */
-+ secmon_reserved: secmon at 43000000 {
++ /* 320 KiB reserved for ARM Trusted Firmware (BL31 + BL32) */
++ secmon at 43000000 {
+ reg = <0 0x43000000 0 0x50000>;
+ no-map;
+ };
More information about the lede-commits
mailing list