drivers/mipi: Add support for KD_KD110N11_51IE panel
[coreboot2.git] / src / soc / mediatek / mt8196 / sspm_sram.c
blob5c9a80e4fa695380af0866dcd4a3cb7d26b6a65f
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/mmio.h>
4 #include <soc/sspm.h>
6 #define SSPM_SRAM_CON (SPM_BASE + 0xEE4)
7 #define SPM_PRJ_CODE 0xB160001
8 #define SSPM_SRAM_SLEEP_B 0x10
9 #define SSPM_SRAM_ISOINT_B 0x2
11 void sspm_enable_sram(void)
13 write32p(SPM_BASE, SPM_PRJ_CODE);
14 write32p(SSPM_SRAM_CON, SSPM_SRAM_SLEEP_B | SSPM_SRAM_ISOINT_B);