From 4e7a47350da8452bb110968e1acd83baccca4e6f Mon Sep 17 00:00:00 2001 From: Philipp Hug Date: Sat, 15 Sep 2018 15:34:53 +0200 Subject: sifive/hifive-unleashed: enable CBMEM support Change-Id: I3eacba9c1c20bbfa270dd7a9afabe48ed9092bcc Signed-off-by: Philipp Hug Reviewed-on: https://review.coreboot.org/28622 Reviewed-by: Ronald G. Minnich Tested-by: build bot (Jenkins) --- src/mainboard/sifive/hifive-unleashed/romstage.c | 2 ++ src/soc/sifive/fu540/Makefile.inc | 1 + 2 files changed, 3 insertions(+) diff --git a/src/mainboard/sifive/hifive-unleashed/romstage.c b/src/mainboard/sifive/hifive-unleashed/romstage.c index df4cf894b2..3767491a5e 100644 --- a/src/mainboard/sifive/hifive-unleashed/romstage.c +++ b/src/mainboard/sifive/hifive-unleashed/romstage.c @@ -42,5 +42,7 @@ void main(void) sdram_init(); + cbmem_initialize_empty(); + run_ramstage(); } diff --git a/src/soc/sifive/fu540/Makefile.inc b/src/soc/sifive/fu540/Makefile.inc index ed1836ed67..e2bdd03a00 100644 --- a/src/soc/sifive/fu540/Makefile.inc +++ b/src/soc/sifive/fu540/Makefile.inc @@ -21,6 +21,7 @@ bootblock-y += bootblock.c romstage-y += uart.c romstage-y += media.c romstage-y += sdram.c +romstage-y += cbmem.c romstage-y += otp.c romstage-y += clock.c -- cgit v1.2.3