blob: 9850fa6fbe73c39fc5bbb91c897e6aace8327f60 [file] [log] [blame]
CK Hu958ab462020-04-07 12:06:31 +08001/* SPDX-License-Identifier: GPL-2.0-only */
2
3#include <device/device.h>
4#include <soc/emi.h>
5#include <symbols.h>
6
7static void soc_read_resources(struct device *dev)
8{
9 ram_resource(dev, 0, (uintptr_t)_dram / KiB, sdram_size() / KiB);
10}
11
12static void soc_init(struct device *dev)
13{
14}
15
16static struct device_operations soc_ops = {
17 .read_resources = soc_read_resources,
18 .init = soc_init,
19};
20
21static void enable_soc_dev(struct device *dev)
22{
23 dev->ops = &soc_ops;
24}
25
26struct chip_operations soc_mediatek_mt8192_ops = {
27 CHIP_NAME("SOC Mediatek MT8192")
28 .enable_dev = enable_soc_dev,
29};