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:
@@ -49,8 +49,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||
|
||||
printk(BIOS_DEBUG, "pm_base: 0x%04x\n", ACPI_IO_BASE);
|
||||
|
||||
fadt->sci_int = ACPI_SCI_IRQ;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
|
@@ -16,6 +16,7 @@
|
||||
#include <amdblocks/ioapic.h>
|
||||
#include <amdblocks/iomap.h>
|
||||
#include <amdblocks/lpc.h>
|
||||
#include <soc/acpi.h>
|
||||
#include <soc/iomap.h>
|
||||
#include <soc/lpc.h>
|
||||
#include <soc/southbridge.h>
|
||||
@@ -34,6 +35,13 @@ static void setup_serirq(void)
|
||||
pm_write8(PM_SERIRQ_CONF, byte);
|
||||
}
|
||||
|
||||
void ioapic_get_sci_pin(u8 *gsi, u8 *irq, u8 *flags)
|
||||
{
|
||||
*gsi = ACPI_SCI_IRQ;
|
||||
*irq = ACPI_SCI_IRQ;
|
||||
*flags = MP_IRQ_TRIGGER_LEVEL | MP_IRQ_POLARITY_LOW;
|
||||
}
|
||||
|
||||
static void fch_ioapic_init(void)
|
||||
{
|
||||
fch_enable_ioapic_decode();
|
||||
|
@@ -52,8 +52,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||
|
||||
printk(BIOS_DEBUG, "pm_base: 0x%04x\n", ACPI_IO_BASE);
|
||||
|
||||
fadt->sci_int = ACPI_SCI_IRQ;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
|
@@ -51,8 +51,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||
|
||||
printk(BIOS_DEBUG, "pm_base: 0x%04x\n", ACPI_IO_BASE);
|
||||
|
||||
fadt->sci_int = ACPI_SCI_IRQ;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
|
@@ -52,8 +52,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||
|
||||
printk(BIOS_DEBUG, "pm_base: 0x%04x\n", ACPI_IO_BASE);
|
||||
|
||||
fadt->sci_int = ACPI_SCI_IRQ;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
|
@@ -56,8 +56,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||
|
||||
printk(BIOS_DEBUG, "pm_base: 0x%04x\n", ACPI_IO_BASE);
|
||||
|
||||
fadt->sci_int = ACPI_SCI_IRQ;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
|
@@ -50,8 +50,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||
{
|
||||
printk(BIOS_DEBUG, "pm_base: 0x%04x\n", ACPI_IO_BASE);
|
||||
|
||||
fadt->sci_int = ACPI_SCI_IRQ;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
|
Reference in New Issue
Block a user