baytrail: fix missing brackets around ir_base to fix IRQ routing
The missing brackets caused other registers, including the IO APIC
enable bit (EAN in OIC) to be overwritten. Bug introduced by
bde6d309
(x86: Change MMIO addr in readN(addr)/writeN(addr, val) to pointer)
Change-Id: I1d5aa2af6d74405a1a125af6221ac0e635a6b693
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Reviewed-on: https://review.coreboot.org/12525
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
edf965a01e
commit
316170e22c
|
@ -184,7 +184,7 @@ static void sc_init(device_t dev)
|
|||
{
|
||||
int i;
|
||||
u8 *pr_base = (u8 *)(ILB_BASE_ADDRESS + 0x08);
|
||||
u16 *ir_base = (u16 *)ILB_BASE_ADDRESS + 0x20;
|
||||
u16 *ir_base = (u16 *)(ILB_BASE_ADDRESS + 0x20);
|
||||
u32 *gen_pmcon1 = (u32 *)(PMC_BASE_ADDRESS + GEN_PMCON1);
|
||||
u32 *actl = (u32 *)(ILB_BASE_ADDRESS + ACTL);
|
||||
const struct baytrail_irq_route *ir = &global_baytrail_irq_route;
|
||||
|
|
Loading…
Reference in New Issue