blob: 410b2d772fdbc870e8dc369c9064d0bd1493111d [file] [log] [blame]
Sam Lewisad7b2e22020-08-03 20:18:29 +10001/* SPDX-License-Identifier: GPL-2.0-only */
2
3#include <device/device.h>
Sam Lewisf1d196c2020-08-06 21:38:08 +10004#include <symbols.h>
5#include <bootmem.h>
6
7static void soc_enable(struct device *dev)
8{
Kyösti Mälkkibe039032021-06-26 14:11:52 +03009 ram_range(dev, 0, (uintptr_t)_dram, CONFIG_DRAM_SIZE_MB * (uint64_t)MiB);
Sam Lewisf1d196c2020-08-06 21:38:08 +100010}
Sam Lewisad7b2e22020-08-03 20:18:29 +100011
12struct chip_operations soc_ti_am335x_ops = {
13 CHIP_NAME("TI AM335X")
Sam Lewisf1d196c2020-08-06 21:38:08 +100014 .enable_dev = soc_enable,
Sam Lewisad7b2e22020-08-03 20:18:29 +100015};