From 69dec0c6b2d79ddcdf37c7ca5885b2bc1691d0b5 Mon Sep 17 00:00:00 2001
From: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: Wed, 12 Sep 2018 16:36:00 +0200
Subject: [PATCH] reserve the top memory with protected RAM (pram)

This is useful for kernel pstore/ramoops so that u-boot relocation
doesn't overwrite it
---
 include/configs/inteno_mt7621.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/configs/inteno_mt7621.h b/include/configs/inteno_mt7621.h
index 55e930cd2ac..f6c62443c04 100644
--- a/include/configs/inteno_mt7621.h
+++ b/include/configs/inteno_mt7621.h
@@ -83,6 +83,7 @@
 #define CONFIG_AUTO_COMPLETE
 #define CONFIG_CMDLINE_EDITING
 
+#define CONFIG_PRAM			(0x80000 >> 10)	/* in kB - protect Linux pstore from being overwritten by u-boot */
 
 /*
  * Serial driver
-- 
GitLab