summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8186
diff options
context:
space:
mode:
authorRunyang Chen <runyang.chen@mediatek.corp-partner.google.com>2022-09-06 20:10:54 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-09-09 10:44:30 +0000
commit2b1fdb034a895811283383c7fda1ecc3016f5a42 (patch)
tree5cefb68771ba370e04960032368a3cdf155b1158 /src/soc/mediatek/mt8186
parent23a6d6c7e7a4191d2434c6a50a846d12b5dd8233 (diff)
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 <runyang.chen@mediatek.corp-partner.google.com> Change-Id: I8535438d4c7da29c9dcd97be9a2af05ea4690064 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67434 Reviewed-by: Yidi Lin <yidilin@google.com> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/mt8186')
-rw-r--r--src/soc/mediatek/mt8186/devapc.c1
1 files changed, 1 insertions, 0 deletions
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)