Maximilian Brune | 2ccb8e7 | 2024-01-14 21:59:27 +0600 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | |||||
3 | #include <cbmem.h> | ||||
4 | #include <device/device.h> | ||||
5 | #include <soc/addressmap.h> | ||||
6 | #include <symbols.h> | ||||
7 | |||||
8 | static void fu740_init(struct device *dev) | ||||
9 | { | ||||
10 | int index = 0; | ||||
11 | ram_from_to(dev, index++, FU740_DRAM, (uintptr_t)cbmem_top()); | ||||
12 | } | ||||
13 | |||||
14 | struct chip_operations soc_sifive_fu740_ops = { | ||||
15 | .name = "SIFIVE FU740", | ||||
16 | .enable_dev = fu740_init, | ||||
17 | }; |