From 04ce5f95f9e0583a37d0692ecb78348394b57df2 Mon Sep 17 00:00:00 2001
From: Piotr Kubik <piotr.kubik@iopsys.eu>
Date: Thu, 24 Mar 2022 16:51:33 +0000
Subject: [PATCH] iopsys-econet: pstore: Enable PSTORE support

Enable pstore-fs kernel support for en7562.
Memory range reservation at the end of
system memory (0x8FF80000-0x90000000) for PSTORE.

Added includes in currently non-used dts files (arcee, rodimus)
for future use. For this moment reservation is done by en7536.dts
from kernel source.

refs #5002
---
 iopsys-econet/config/config     |  2 +-
 iopsys-econet/dts/arcee.dts     |  3 +++
 iopsys-econet/dts/rodimus.dts   |  3 +++
 iopsys-econet/en7562/config-5.4 | 10 ++++++++++
 4 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/iopsys-econet/config/config b/iopsys-econet/config/config
index 36c66c7df..2ed28af9f 100644
--- a/iopsys-econet/config/config
+++ b/iopsys-econet/config/config
@@ -1,5 +1,5 @@
 CONFIG_KERNEL_GIT_CLONE_URI="https://dev.iopsys.eu/econet/linux.git"
-CONFIG_KERNEL_GIT_REF="e55e5b95c543f9af5c29a759da638a58f3aa7fce"
+CONFIG_KERNEL_GIT_REF="f4bcdff6313d7ec6ed85934745b2073b3a69a4c6"
 
 #Econet drivers
 CONFIG_PACKAGE_kmod-ether=y
diff --git a/iopsys-econet/dts/arcee.dts b/iopsys-econet/dts/arcee.dts
index 846fc6bcc..462add1d8 100755
--- a/iopsys-econet/dts/arcee.dts
+++ b/iopsys-econet/dts/arcee.dts
@@ -33,6 +33,9 @@
 			reg = <0x84000000 0x100000>;
 		};
 
+		/* pstore memory reservations */
+		#include "en7523_pstore.dtsi"
+
 	};
 
 	psci {
diff --git a/iopsys-econet/dts/rodimus.dts b/iopsys-econet/dts/rodimus.dts
index 61a648f3c..40c014288 100755
--- a/iopsys-econet/dts/rodimus.dts
+++ b/iopsys-econet/dts/rodimus.dts
@@ -32,6 +32,9 @@
 			reg = <0x84000000 0x100000>;
 		};
 
+		/* pstore memory reservations */
+		#include "en7523_pstore.dtsi"
+
 	};
 
 	psci {
diff --git a/iopsys-econet/en7562/config-5.4 b/iopsys-econet/en7562/config-5.4
index 40446c056..81983e6ad 100755
--- a/iopsys-econet/en7562/config-5.4
+++ b/iopsys-econet/en7562/config-5.4
@@ -616,6 +616,16 @@ CONFIG_PPP_DEFLATE=y
 # CONFIG_PPP_MULTILINK is not set
 CONFIG_PROC_PAGE_MONITOR=y
 CONFIG_PROC_PID_CPUSET=y
+CONFIG_PSTORE=y
+# CONFIG_PSTORE_842_COMPRESS is not set
+CONFIG_PSTORE_CONSOLE=y
+# CONFIG_PSTORE_DEFLATE_COMPRESS is not set
+# CONFIG_PSTORE_LZ4HC_COMPRESS is not set
+# CONFIG_PSTORE_LZ4_COMPRESS is not set
+# CONFIG_PSTORE_LZO_COMPRESS is not set
+CONFIG_PSTORE_PMSG=y
+CONFIG_PSTORE_RAM=y
+# CONFIG_PSTORE_ZSTD_COMPRESS is not set
 CONFIG_RATIONAL=y
 CONFIG_RCU_CPU_STALL_TIMEOUT=21
 # CONFIG_RCU_EXPERT is not set
-- 
GitLab