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>
This commit is contained in:
Runyang Chen 2022-09-06 20:10:54 +08:00 committed by Felix Held
parent 23a6d6c7e7
commit 2b1fdb034a
1 changed files with 1 additions and 0 deletions

View File

@ -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)