diff options
author | Maximilian Brune <maximilian.brune@9elements.com> | 2024-01-14 21:59:27 +0600 |
---|---|---|
committer | ron minnich <rminnich@gmail.com> | 2024-03-03 21:20:03 +0000 |
commit | 2ccb8e7891f429c3b72773860521a2b943a049be (patch) | |
tree | 2acf887ac1555980342f31f0fda35dbdefda915e /src/soc/sifive/fu740/chip.c | |
parent | ec7b48076009cfe82e5ee91050f5fc66c4850193 (diff) |
soc/sifive/fu740: Add FU740 SOC
Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com>
Change-Id: I4a8fe02ef0adcb939aa65377a35874715c5ee58a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76689
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: ron minnich <rminnich@gmail.com>
Diffstat (limited to 'src/soc/sifive/fu740/chip.c')
-rw-r--r-- | src/soc/sifive/fu740/chip.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/soc/sifive/fu740/chip.c b/src/soc/sifive/fu740/chip.c new file mode 100644 index 0000000000..cd5052be1a --- /dev/null +++ b/src/soc/sifive/fu740/chip.c @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <cbmem.h> +#include <device/device.h> +#include <soc/addressmap.h> +#include <symbols.h> + +static void fu740_init(struct device *dev) +{ + int index = 0; + ram_from_to(dev, index++, FU740_DRAM, (uintptr_t)cbmem_top()); +} + +struct chip_operations soc_sifive_fu740_ops = { + .name = "SIFIVE FU740", + .enable_dev = fu740_init, +}; |