From 8cb9641eca5d24048bf9e9a5a4707cae1e26d366 Mon Sep 17 00:00:00 2001 From: Jarried Lin Date: Sun, 14 Jul 2024 18:57:15 +0800 Subject: soc/mediatek/mt8196: Add a stub implementation of the MT8196 SoC Add new folder and basic drivers for Mediatek SoC 'MT8196'. Refer to MT8196_Chromebook_Application_Processor_Datasheet_V1.0 for MT8196 SPEC detail. This patch also enables UART and ARM arch timer. TEST=saw the coreboot uart log to bootblock BUG=b:317009620 Change-Id: I8190253ed000db879b04a806ca0bdf29c14be806 Signed-off-by: Jarried Lin Reviewed-on: https://review.coreboot.org/c/coreboot/+/83572 Tested-by: build bot (Jenkins) Reviewed-by: Yidi Lin Reviewed-by: Yu-Ping Wu --- src/soc/mediatek/mt8196/soc.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/soc/mediatek/mt8196/soc.c (limited to 'src/soc/mediatek/mt8196/soc.c') diff --git a/src/soc/mediatek/mt8196/soc.c b/src/soc/mediatek/mt8196/soc.c new file mode 100644 index 0000000000..b77735ceed --- /dev/null +++ b/src/soc/mediatek/mt8196/soc.c @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include +#include +#include + +static void soc_read_resources(struct device *dev) +{ + ram_range(dev, 0, (uintptr_t)_dram, sdram_size()); +} + +static void soc_init(struct device *dev) +{ +} + +static struct device_operations soc_ops = { + .read_resources = soc_read_resources, + .set_resources = noop_set_resources, + .init = soc_init, +}; + +static void enable_soc_dev(struct device *dev) +{ + dev->ops = &soc_ops; +} + +struct chip_operations soc_mediatek_mt8196_ops = { + .name = "SOC Mediatek MT8196", + .enable_dev = enable_soc_dev, +}; -- cgit v1.2.3