arch/x86/ioapic: Promote ioapic_get_sci_pin()
Platform needs to implement this to provide information about SCI IRQ pin and polarity, to be used for filling in ACPI FADT and MADT entries. Change-Id: Icea7e9ca4abf3997c01617d2f78f25036d85a52f Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74337 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
@@ -226,7 +226,7 @@ int acpi_create_madt_ioapic_from_hw(acpi_madt_ioapic_t *ioapic, u32 addr)
|
||||
}
|
||||
#endif
|
||||
|
||||
u16 acpi_sci_int(void)
|
||||
static u16 acpi_sci_int(void)
|
||||
{
|
||||
#if ENV_X86
|
||||
u8 gsi, irq, flags;
|
||||
@@ -1736,6 +1736,8 @@ static void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
|
||||
if (CONFIG(USE_PC_CMOS_ALTCENTURY))
|
||||
fadt->century = RTC_CLK_ALTCENTURY;
|
||||
|
||||
fadt->sci_int = acpi_sci_int();
|
||||
|
||||
arch_fill_fadt(fadt);
|
||||
|
||||
acpi_fill_fadt(fadt);
|
||||
|
Reference in New Issue
Block a user