summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2016-12-03 17:00:52 +0100
committerRonald G. Minnich <rminnich@gmail.com>2016-12-06 18:51:47 +0100
commitc978886e7bdc59de6646a164dabf01b1144b2afa (patch)
tree2900cd3be4d657efb3196ca1566b998309e09899 /src/mainboard
parent1e910c901b436adc6a0590e89b4b71262d23fcc9 (diff)
mb/lowrisc/nexys4ddr: Initialize CBMEM in romstage
Change-Id: Ic1706ae8ab3cbef8f445d70cb78fa9d3301d87be Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-on: https://review.coreboot.org/17707 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/lowrisc/nexys4ddr/mainboard.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainboard/lowrisc/nexys4ddr/mainboard.c b/src/mainboard/lowrisc/nexys4ddr/mainboard.c
index b2ce39886c..8b6bcb2442 100644
--- a/src/mainboard/lowrisc/nexys4ddr/mainboard.c
+++ b/src/mainboard/lowrisc/nexys4ddr/mainboard.c
@@ -13,6 +13,7 @@
* GNU General Public License for more details.
*/
+#include <cbmem.h>
#include <device/device.h>
#include <symbols.h>
@@ -24,6 +25,8 @@ static void mainboard_enable(device_t dev)
const size_t ram_size = 1*GiB;
ram_resource(dev, 0, (uintptr_t)_dram / KiB, ram_size / KiB);
+
+ cbmem_initialize_empty();
}
struct chip_operations mainboard_ops = {