| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <cbmem.h> |
| 4 | #include <device/device.h> |
| 5 | #include <soc/addressmap.h> |
| 6 | |
| 7 | static void fu540_read_resources(struct device *dev) |
| 8 | { |
| 9 | int index = 0; |
| 10 | ram_from_to(dev, index++, FU540_DRAM, (uintptr_t)cbmem_top()); |
| 11 | } |
| 12 | |
| 13 | struct device_operations fu540_cpu_ops = { |
| 14 | .read_resources = fu540_read_resources, |
| 15 | }; |
| 16 | |
| 17 | struct chip_operations soc_sifive_fu540_ops = { |
| 18 | .name = "SIFIVE FU540", |
| 19 | }; |