Debian Codegraph @

src/soc/mediatek/common/sspm_sram.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */
2
3 #include <device/mmio.h>
4 #include <soc/addressmap.h>
5 #include <soc/spm.h>
6 #include <soc/sspm.h>
7
8 #define SPM_PRJ_CODE 0xB160001
9 #define SSPM_SRAM_SLEEP_B 0x10
10 #define SSPM_SRAM_ISOINT_B 0x2
11
12 void sspm_enable_sram(void)
13 {
14 write32p(SPM_BASE, SPM_PRJ_CODE);
15 write32(&mtk_spm->sspm_sram_con, SSPM_SRAM_SLEEP_B | SSPM_SRAM_ISOINT_B);
16 }