From ff7ac271c0ecaf5c2db4dd5fab0d471817e639ea Mon Sep 17 00:00:00 2001 From: Runyang Chen Date: Thu, 22 Sep 2022 14:47:56 +0800 Subject: [PATCH] soc/mediatek/mt8186: Allow SCP to access H264 encoder Issue: Camera APP is not functional after CB:67434 applied. Root cause and solution: SCP hardware needs to access H264 encoder registers, so we need to remove the DEVAPC protection of H264 encoder for SCP. BUG=b:247743696 TEST=camera APP is functional. Signed-off-by: Runyang Chen Change-Id: I95946346018bff6a8f2dc02b1ff3e24ad079fc90 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67787 Reviewed-by: Yidi Lin Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/soc/mediatek/mt8186/devapc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/mediatek/mt8186/devapc.c b/src/soc/mediatek/mt8186/devapc.c index ecde1c2b21..8f28f2c699 100644 --- a/src/soc/mediatek/mt8186/devapc.c +++ b/src/soc/mediatek/mt8186/devapc.c @@ -652,7 +652,7 @@ static const struct apc_infra_peri_dom_4 mm_ao_sys0_devices[] = { DAPC_MM_AO_SYS0_ATTR("smi_larb7", NO_PROTECTION, FORBIDDEN, FORBIDDEN, NO_PROTECTION), DAPC_MM_AO_SYS0_ATTR("venc", - NO_PROTECTION, FORBIDDEN, FORBIDDEN, NO_PROTECTION), + NO_PROTECTION, NO_PROTECTION, FORBIDDEN, NO_PROTECTION), DAPC_MM_AO_SYS0_ATTR("jpgenc", NO_PROTECTION, FORBIDDEN, FORBIDDEN, NO_PROTECTION), DAPC_MM_AO_SYS0_ATTR("reserved",