baytrail: configure acpi SCI irq
Baytrail has a configurable SCI irq. Add support for properly configuring SCI irq. Note that it is currently fixed to IRQ9, but the code supports setting it to the other supported values. The current mainboards using baytrail defer the madt IRQ override information to the chipset. BUG=chrome-os-partner:23505 BRANCH=None TEST=Built and booted. Noted 'SCI is IRQ9' message. Change-Id: I7b307bd58f9de944f0cb4c116107a15345499f2e Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/176075 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: http://review.coreboot.org/4946 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
committed by
Kyösti Mälkki
parent
952d85e5f2
commit
1af366322e
@@ -122,6 +122,7 @@ static void sc_init(device_t dev)
|
||||
int i;
|
||||
const unsigned long pr_base = ILB_BASE_ADDRESS + 0x08;
|
||||
const unsigned long ir_base = ILB_BASE_ADDRESS + 0x20;
|
||||
const unsigned long actl = ILB_BASE_ADDRESS + ACTL;
|
||||
const struct baytrail_irq_route *ir = &global_baytrail_irq_route;
|
||||
|
||||
/* Set up the PIRQ PIC routing based on static config. */
|
||||
@@ -132,6 +133,9 @@ static void sc_init(device_t dev)
|
||||
for (i = 0; i < NUM_IR_DEVS; i++) {
|
||||
write16(ir_base + i*sizeof(ir->pcidev[i]), ir->pcidev[i]);
|
||||
}
|
||||
|
||||
/* Route SCI to IRQ9 */
|
||||
write32(actl, (read32(actl) & ~SCIS_MASK) | SCIS_IRQ9);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user