mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git] / src / soc / mediatek / common / sspm.c
blob0a4d5b0cd60f3cc2b77c76739c242c4dbba62d57
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/mmio.h>
4 #include <soc/mcu_common.h>
5 #include <soc/sspm.h>
6 #include <soc/symbols.h>
8 static void reset_sspm(struct mtk_mcu *mcu)
10 write32(&sspm_reg->sw_rstn, 0x1);
13 static struct mtk_mcu sspm = {
14 .firmware_name = CONFIG_SSPM_FIRMWARE,
15 .run_address = (void *)SSPM_SRAM_BASE,
16 .reset = reset_sspm,
19 void sspm_init(void)
21 sspm.load_buffer = _dram_dma;
22 sspm.buffer_size = REGION_SIZE(dram_dma);
24 mtk_init_mcu(&sspm);