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:
parent
72630183a1
commit
7b6bbb7ef5
1 changed files with 1 additions and 1 deletions
|
|
@ -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(®[i], EINT_VALUE);
|
||||
}
|
||||
|
||||
void unmask_eint_event_mask(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue