diff options
Diffstat (limited to 'src/soc/mediatek/mt8192')
-rw-r--r-- | src/soc/mediatek/mt8192/devapc.c | 5 | ||||
-rw-r--r-- | src/soc/mediatek/mt8192/include/soc/devapc.h | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/soc/mediatek/mt8192/devapc.c b/src/soc/mediatek/mt8192/devapc.c index 327896b10a..e854727355 100644 --- a/src/soc/mediatek/mt8192/devapc.c +++ b/src/soc/mediatek/mt8192/devapc.c @@ -71,9 +71,10 @@ static void fmem_master_init(uintptr_t base) static void scp_master_init(uintptr_t base) { write32(getreg(base, SCP_DOM), MAS_DOMAIN_3); + write32(getreg(base, ADSP_DOM), MAS_DOMAIN_4); - /* Let SCP_DOM register be read-only for security */ - write32(getreg(base, ONETIME_LOCK), 0x1); + /* Let SCP_DOM and ADSP_DOM registers be read-only for security */ + write32(getreg(base, ONETIME_LOCK), 0x5); } struct devapc_init { diff --git a/src/soc/mediatek/mt8192/include/soc/devapc.h b/src/soc/mediatek/mt8192/include/soc/devapc.h index fd332dbd15..e79acfa2b9 100644 --- a/src/soc/mediatek/mt8192/include/soc/devapc.h +++ b/src/soc/mediatek/mt8192/include/soc/devapc.h @@ -23,6 +23,7 @@ enum devapc_ao_offset { enum scp_offset { SCP_DOM = 0xA5080, + ADSP_DOM = 0xA5088, ONETIME_LOCK = 0xA5104, }; |