Attention is currently required from: Philipp Hug, ron minnich.
Maximilian Brune has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/81909?usp=email )
Change subject: soc/sifive/fu540/chip.c: Add RAM resources ......................................................................
soc/sifive/fu540/chip.c: Add RAM resources
Add RAM region so that the payload can be placed in there without coreboot complaining that the payload doesn't target a RAM region.
Signed-off-by: Maximilian Brune maximilian.brune@9elements.com Change-Id: Id07eae3560ce69cd8a6a695702fa0b4463c50855 --- M src/soc/sifive/fu540/chip.c 1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/81909/1
diff --git a/src/soc/sifive/fu540/chip.c b/src/soc/sifive/fu540/chip.c index e33b4a3..ba5d4845 100644 --- a/src/soc/sifive/fu540/chip.c +++ b/src/soc/sifive/fu540/chip.c @@ -1,7 +1,16 @@ /* SPDX-License-Identifier: GPL-2.0-only */
+#include <cbmem.h> #include <device/device.h> +#include <soc/addressmap.h> + +static void fu540_init(struct device *dev) +{ + int index = 0; + ram_from_to(dev, index++, FU540_DRAM, (uintptr_t)cbmem_top()); +}
struct chip_operations soc_sifive_fu540_ops = { .name = "SIFIVE FU540", + .enable_dev = fu540_init, };