[openwrt/openwrt] uboot-mediatek: mt7986: support PSTORE/ramoops
LEDE Commits
lede-commits at lists.infradead.org
Sun Aug 28 12:42:09 PDT 2022
dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/85581cc89a0a4db8df0675458ef54534fdd65e1f
commit 85581cc89a0a4db8df0675458ef54534fdd65e1f
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Fri Aug 12 23:31:49 2022 +0200
uboot-mediatek: mt7986: support PSTORE/ramoops
Assign reserved memory for PSTORE/ramoops for the MT7986 SoC.
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
.../patches/051-mt7986-enable-pstore.patch | 38 ++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/package/boot/uboot-mediatek/patches/051-mt7986-enable-pstore.patch b/package/boot/uboot-mediatek/patches/051-mt7986-enable-pstore.patch
new file mode 100644
index 0000000000..15484bef55
--- /dev/null
+++ b/package/boot/uboot-mediatek/patches/051-mt7986-enable-pstore.patch
@@ -0,0 +1,38 @@
+--- a/arch/arm/dts/mt7986.dtsi
++++ b/arch/arm/dts/mt7986.dtsi
+@@ -46,6 +46,35 @@
+ };
+ };
+
++ psci {
++ compatible = "arm,psci-0.2";
++ method = "smc";
++ };
++
++ reserved-memory {
++ #address-cells = <2>;
++ #size-cells = <2>;
++ ranges;
++
++ /* 64 KiB reserved for ramoops/pstore */
++ ramoops at 42ff0000 {
++ compatible = "ramoops";
++ reg = <0 0x42ff0000 0 0x10000>;
++ record-size = <0x1000>;
++ };
++
++ /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
++ secmon_reserved: secmon at 43000000 {
++ reg = <0 0x43000000 0 0x30000>;
++ no-map;
++ };
++
++ wmcpu_emi: wmcpu-reserved at 4fc00000 {
++ no-map;
++ reg = <0 0x4fc00000 0 0x00100000>;
++ };
++ };
++
+ dummy_clk: dummy12m {
+ compatible = "fixed-clock";
+ clock-frequency = <12000000>;
More information about the lede-commits
mailing list