]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
km: ls102xa: add missing define for PRAM regions
authorAleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com>
Tue, 8 Jun 2021 14:19:08 +0000 (14:19 +0000)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 17 Jun 2021 06:16:11 +0000 (11:46 +0530)
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>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
include/configs/km/pg-wcom-ls102xa.h

index 35bfa450b1b6e2e6c7f315d0ba41c4e00b50c713..1e06a5b712fb0da9b420160d256f980e49f230d5 100644 (file)
 #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