diff mbox series

[3/8] km: ls102xa: add missing define for PRAM regions

Message ID AM9PR06MB8100B06272DD283B99D58C83D2379@AM9PR06MB8100.eurprd06.prod.outlook.com
State Accepted
Commit a09806498c2dcaf02a8f2fd41ab3bb595fc13ca4
Delegated to: Priyanka Jain
Headers show
Series [1/8] board/km: add support for expu1 design based on nxp | expand

Commit Message

Aleksandar Gerasimovski June 8, 2021, 2:19 p.m. UTC
In our designs we reserve PRAM area at the end of the RAM, and in order
this area to be visible and taken into account by the u-boot memory mgmt
CONFIG_PRAM has to be defined.

Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com>
---
 include/configs/km/pg-wcom-ls102xa.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/include/configs/km/pg-wcom-ls102xa.h b/include/configs/km/pg-wcom-ls102xa.h
index 35bfa45..1e06a5b 100644
--- a/include/configs/km/pg-wcom-ls102xa.h
+++ b/include/configs/km/pg-wcom-ls102xa.h
@@ -21,6 +21,10 @@ 
 #define CONFIG_SYS_INIT_RAM_ADDR	OCRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE	OCRAM_SIZE
 
+#define CONFIG_PRAM			((CONFIG_KM_PNVRAM + \
+					  CONFIG_KM_PHRAM + \
+					  CONFIG_KM_RESERVED_PRAM) >> 10)
+
 #define CONFIG_SYS_CLK_FREQ		66666666
 /*
  * Take into account default implementation where DDR_FDBK_MULTI is consider as