aboutsummaryrefslogtreecommitdiff
path: root/src/soc/qualcomm/ipq806x/cbmem.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2014-12-11 17:31:20 -0800
committerPatrick Georgi <pgeorgi@google.com>2015-04-15 21:56:30 +0200
commit59b8c385986b8981cd9e34cbd04f45ecf42c1ed0 (patch)
tree237200174831d53112b9a78f33ece545ab92d5c6 /src/soc/qualcomm/ipq806x/cbmem.c
parentfac642035e9bf1130b3caffd77dd1f5d9affdfdd (diff)
storm: use different CBFS caches before and after DRAM is available
Booting depthcharge requires much larger CBFS cache, but by the time depthcharge is being booted DRAM is already initialized. Use different memory spaces for CBFS cache before and after DRAM is available. Also, make sure that CBMEM uses memory below CBFS cache in DRAM. BRANCH=storm BUG=chrome-os-partner:34161 TEST=with this change on Storm ramstage finds and boots depthcharge in recovery mode Change-Id: Icd1bbf4bcc5f9d92b2653b5a8891409105a25353 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: e1e0b029b7fb09b84784373150cc4ce9eea7b3f5 Original-Change-Id: I33fd97806b2db6fab2adc44b67e5f54258642967 Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/234543 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/9688 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/qualcomm/ipq806x/cbmem.c')
-rw-r--r--src/soc/qualcomm/ipq806x/cbmem.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/soc/qualcomm/ipq806x/cbmem.c b/src/soc/qualcomm/ipq806x/cbmem.c
index fdf2605147..782f752b6c 100644
--- a/src/soc/qualcomm/ipq806x/cbmem.c
+++ b/src/soc/qualcomm/ipq806x/cbmem.c
@@ -18,10 +18,9 @@
*/
#include <cbmem.h>
-#include <stddef.h>
-#include <symbols.h>
+#include <soc/soc_services.h>
void *cbmem_top(void)
{
- return (void *)((uintptr_t)_dram + CONFIG_DRAM_SIZE_MB*MiB);
+ return _memlayout_cbmem_top;
}