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 | { |
Kyösti Mälkki | be03903 | 2021-06-26 14:11:52 +0300 | [diff] [blame^] | 9 | ram_range(dev, 0, (uintptr_t)_dram, CONFIG_DRAM_SIZE_MB * (uint64_t)MiB); |
Sam Lewis | f1d196c | 2020-08-06 21:38:08 +1000 | [diff] [blame] | 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 | }; |