From 2b1fdb034a895811283383c7fda1ecc3016f5a42 Mon Sep 17 00:00:00 2001 From: Runyang Chen Date: Tue, 6 Sep 2022 20:10:54 +0800 Subject: soc/mediatek/mt8186: Enable the protection of DEVAPC Enable the protection for DEVAPC registers of AO domain. TEST=build pass. BUG=b:244250435 Signed-off-by: Runyang Chen Change-Id: I8535438d4c7da29c9dcd97be9a2af05ea4690064 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67434 Reviewed-by: Yidi Lin Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) --- src/soc/mediatek/mt8186/devapc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/soc/mediatek/mt8186/devapc.c b/src/soc/mediatek/mt8186/devapc.c index 2790236c83..ecde1c2b21 100644 --- a/src/soc/mediatek/mt8186/devapc.c +++ b/src/soc/mediatek/mt8186/devapc.c @@ -1300,6 +1300,7 @@ void dapc_init(void) /* Init dapc */ write32(getreg(devapc_ao_base, AO_APC_CON), 0x0); + write32(getreg(devapc_ao_base, AO_APC_CON), 0x1); /* Initialization */ if (devapc_init[i].init) -- cgit v1.2.3