From c978886e7bdc59de6646a164dabf01b1144b2afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Date: Sat, 3 Dec 2016 17:00:52 +0100 Subject: mb/lowrisc/nexys4ddr: Initialize CBMEM in romstage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic1706ae8ab3cbef8f445d70cb78fa9d3301d87be Signed-off-by: Jonathan Neuschäfer Reviewed-on: https://review.coreboot.org/17707 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/mainboard/lowrisc/nexys4ddr/mainboard.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 #include #include @@ -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 = { -- cgit v1.2.3