drivers/mipi: Add support for KD_KD110N11_51IE panel
[coreboot2.git] / src / soc / mediatek / common / sspm.c
blobd1031f53af28966f037163ca5c7d20f5b64b4154
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 __weak void sspm_enable_sram(void)
21 /* do nothing. */
24 void sspm_init(void)
26 sspm_enable_sram();
28 sspm.load_buffer = _dram_dma;
29 sspm.buffer_size = REGION_SIZE(dram_dma);
31 mtk_init_mcu(&sspm);