uboot-mediatek: mt7986: support PSTORE/ramoops
authorDaniel Golle <daniel@makrotopia.org>
Fri, 12 Aug 2022 21:31:49 +0000 (23:31 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 28 Aug 2022 19:33:15 +0000 (20:33 +0100)
Assign reserved memory for PSTORE/ramoops for the MT7986 SoC.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/boot/uboot-mediatek/patches/051-mt7986-enable-pstore.patch [new file with mode: 0644]

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 (file)
index 0000000..15484be
--- /dev/null
@@ -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@42ff0000 {
++                      compatible = "ramoops";
++                      reg = <0 0x42ff0000 0 0x10000>;
++                      record-size = <0x1000>;
++              };
++
++              /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
++              secmon_reserved: secmon@43000000 {
++                      reg = <0 0x43000000 0 0x30000>;
++                      no-map;
++              };
++
++              wmcpu_emi: wmcpu-reserved@4fc00000 {
++                      no-map;
++                      reg = <0 0x4fc00000 0 0x00100000>;
++              };
++      };
++
+       dummy_clk: dummy12m {
+               compatible = "fixed-clock";
+               clock-frequency = <12000000>;