aboutsummaryrefslogtreecommitdiff
path: root/src/soc/qualcomm/ipq806x/soc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/qualcomm/ipq806x/soc.c')
-rw-r--r--src/soc/qualcomm/ipq806x/soc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/soc/qualcomm/ipq806x/soc.c b/src/soc/qualcomm/ipq806x/soc.c
index 53f5716c07..6421ccdadd 100644
--- a/src/soc/qualcomm/ipq806x/soc.c
+++ b/src/soc/qualcomm/ipq806x/soc.c
@@ -22,10 +22,16 @@
#include <console/console.h>
#include <device/device.h>
+
+#define RESERVED_SIZE_KB (0x01500000 / KiB)
+
static void soc_read_resources(device_t dev)
{
- ram_resource(dev, 0, CONFIG_SYS_SDRAM_BASE/KiB,
- CONFIG_DRAM_SIZE_MB * (1 << 10));
+ /* Reserve bottom 0x150_0000 bytes for NSS, SMEM, etc. */
+ reserved_ram_resource(dev, 0,
+ CONFIG_SYS_SDRAM_BASE/KiB, RESERVED_SIZE_KB);
+ ram_resource(dev, 0, CONFIG_SYS_SDRAM_BASE/KiB + RESERVED_SIZE_KB,
+ (CONFIG_DRAM_SIZE_MB * KiB) - RESERVED_SIZE_KB);
}
static void soc_init(device_t dev)