summaryrefslogtreecommitdiff
path: root/src/soc/ucb/riscv
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2017-09-29 06:29:38 +0200
committerPatrick Georgi <pgeorgi@google.com>2017-11-07 12:31:00 +0000
commit67b3268fac933c33a00a036dab4dfa366ffc3639 (patch)
treed25606e8428167ccb35e607697140b5dfd7fbe34 /src/soc/ucb/riscv
parent5a6e389747d37e4ed69d9261187155c83739a649 (diff)
RISC-V boards: Stop using the config string
RISC-V is moving towards OpenFirmware-derived device trees, and the old functions to read the config string don't work anymore. Use dummy values for the memory base and size until we can query the device tree. Change-Id: Ice13feae4da2085ee56bac4ac2864268da18d8fe Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-on: https://review.coreboot.org/21690 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/soc/ucb/riscv')
-rw-r--r--src/soc/ucb/riscv/cbmem.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/soc/ucb/riscv/cbmem.c b/src/soc/ucb/riscv/cbmem.c
index 44ffa26939..f8f4098d75 100644
--- a/src/soc/ucb/riscv/cbmem.c
+++ b/src/soc/ucb/riscv/cbmem.c
@@ -19,7 +19,10 @@ void *cbmem_top(void)
uintptr_t base;
size_t size;
- query_mem(configstring(), &base, &size);
+ /* Use dummy values until we can query the memory size again */
+ //query_mem(configstring(), &base, &size);
+ base = 0x80000000;
+ size = 128 * MiB;
return (void *)(base + size);
}