mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
cc201759b6
Add support for pstore/ramoops now that DRAM content is preserved over reboot on MT7622. On each boot, check pstore and boot to recovery image in case there are records stored in it. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
34 lines
667 B
Diff
34 lines
667 B
Diff
--- a/arch/arm/dts/mt7622.dtsi
|
|
+++ b/arch/arm/dts/mt7622.dtsi
|
|
@@ -37,6 +37,30 @@
|
|
};
|
|
};
|
|
|
|
+ psci {
|
|
+ compatible = "arm,psci-1.0";
|
|
+ method = "smc";
|
|
+ };
|
|
+
|
|
+ reserved-memory {
|
|
+ #address-cells = <2>;
|
|
+ #size-cells = <2>;
|
|
+ ranges;
|
|
+
|
|
+ /* 64 KiB reserved for ramoops/pstore */
|
|
+ ramoops@0x42ff0000 {
|
|
+ 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;
|
|
+ };
|
|
+ };
|
|
+
|
|
snfi: snfi@1100d000 {
|
|
compatible = "mediatek,mtk-snfi-spi";
|
|
reg = <0x1100d000 0x2000>;
|