UPSTREAM: mb/lowrisc/nexys4ddr: Initialize CBMEM in romstage
BUG=None BRANCH=None TEST=None Signed-off-by: Jonathan Neuschfer <j.neuschaefer@gmx.net> Reviewed-on: https://review.coreboot.org/17707 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Change-Id: Ic1706ae8ab3cbef8f445d70cb78fa9d3301d87be Reviewed-on: https://chromium-review.googlesource.com/417075 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
2421dffc74
commit
2c7f52e8a0
1 changed files with 3 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue