aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-mediatek/patches/051-mt7986-enable-pstore.patch
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-08-12 23:31:49 +0200
committerDaniel Golle <daniel@makrotopia.org>2022-08-28 20:33:15 +0100
commit85581cc89a0a4db8df0675458ef54534fdd65e1f (patch)
tree21065b915bac875303e82bc7f6f6fc0f6a002c26 /package/boot/uboot-mediatek/patches/051-mt7986-enable-pstore.patch
parentd3a337a592bc26be374a70d1aca4aa20080527d4 (diff)
downloadupstream-85581cc89a0a4db8df0675458ef54534fdd65e1f.tar.gz
upstream-85581cc89a0a4db8df0675458ef54534fdd65e1f.tar.bz2
upstream-85581cc89a0a4db8df0675458ef54534fdd65e1f.zip
uboot-mediatek: mt7986: support PSTORE/ramoops
Assign reserved memory for PSTORE/ramoops for the MT7986 SoC. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/boot/uboot-mediatek/patches/051-mt7986-enable-pstore.patch')
-rw-r--r--package/boot/uboot-mediatek/patches/051-mt7986-enable-pstore.patch38
1 files changed, 38 insertions, 0 deletions
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@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>;