blob: 6f1c7940b26c8e936165445624f038b675d9bb76 [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älkki27d62992022-05-24 20:25:58 +03009 ram_resource_kb(dev, 0, (uintptr_t)_dram / KiB, CONFIG_DRAM_SIZE_MB * MiB / KiB);
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};