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>
This commit is contained in:
committed by
Ronald G. Minnich
parent
1e910c901b
commit
c978886e7b
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user