Sam Lewis | ad7b2e2 | 2020-08-03 20:18:29 +1000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <device/device.h> |
Sam Lewis | f1d196c | 2020-08-06 21:38:08 +1000 | [diff] [blame] | 4 | #include <symbols.h> |
| 5 | #include <bootmem.h> |
| 6 | |
| 7 | static void soc_enable(struct device *dev) |
| 8 | { |
| 9 | ram_resource(dev, 0, (uintptr_t)_dram / KiB, CONFIG_DRAM_SIZE_MB * MiB / KiB); |
| 10 | } |
Sam Lewis | ad7b2e2 | 2020-08-03 20:18:29 +1000 | [diff] [blame] | 11 | |
| 12 | struct chip_operations soc_ti_am335x_ops = { |
| 13 | CHIP_NAME("TI AM335X") |
Sam Lewis | f1d196c | 2020-08-06 21:38:08 +1000 | [diff] [blame] | 14 | .enable_dev = soc_enable, |
Sam Lewis | ad7b2e2 | 2020-08-03 20:18:29 +1000 | [diff] [blame] | 15 | }; |