soc/mediatek: Fix register access for EINT

We should be writing to the address of reg[i], instead of the address
whose value is reg[i].

Change-Id: I4fb78f974155725a91aad3a5450733d24b57af15
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86073
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
This commit is contained in:
Yu-Ping Wu 2025-01-21 15:39:37 +08:00 committed by Yu-Ping Wu
commit 7b6bbb7ef5

View file

@ -17,7 +17,7 @@ static void enable_eint_event(const struct eint_event_info *event)
int i;
for (i = 0; i < port; i++)
write32p(reg[i], EINT_VALUE);
write32(&reg[i], EINT_VALUE);
}
void unmask_eint_event_mask(void)