drivers/generic/ioapic: Drop enable_virtual_wire
All boards with DRIVERS_GENERIC_IOAPIC select it. Presumably the related configuration of routing IRQ0 when IOAPIC is enabled should be always done to provide i8259 legacy compatibility for payloads. Change-Id: Ie87816271fa63bba892c8615aa5e72ee68f6ba93 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55287 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
@@ -35,7 +35,6 @@ void setup_ioapic(void *ioapic_base, u8 ioapic_id);
|
||||
void clear_ioapic(void *ioapic_base);
|
||||
|
||||
void ioapic_set_boot_config(void *ioapic_base, bool irq_on_fsb);
|
||||
void setup_ioapic_helper(void *ioapic_base, u8 ioapic_id, bool enable_virtual_wire);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@@ -136,17 +136,9 @@ void ioapic_set_boot_config(void *ioapic_base, bool irq_on_fsb)
|
||||
}
|
||||
}
|
||||
|
||||
void setup_ioapic_helper(void *ioapic_base, u8 ioapic_id, bool enable_virtual_wire)
|
||||
void setup_ioapic(void *ioapic_base, u8 ioapic_id)
|
||||
{
|
||||
set_ioapic_id(ioapic_base, ioapic_id);
|
||||
clear_ioapic(ioapic_base);
|
||||
|
||||
if (enable_virtual_wire)
|
||||
route_i8259_irq0(ioapic_base);
|
||||
}
|
||||
|
||||
|
||||
void setup_ioapic(void *ioapic_base, u8 ioapic_id)
|
||||
{
|
||||
setup_ioapic_helper(ioapic_base, ioapic_id, true);
|
||||
route_i8259_irq0(ioapic_base);
|
||||
}
|
||||
|
Reference in New Issue
Block a user