diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/intel/baytrail/acpi.c | 22 | ||||
-rw-r--r-- | src/soc/intel/baytrail/include/soc/acpi.h | 1 |
2 files changed, 11 insertions, 12 deletions
diff --git a/src/soc/intel/baytrail/acpi.c b/src/soc/intel/baytrail/acpi.c index 77bdcc9284..8bfb345db9 100644 --- a/src/soc/intel/baytrail/acpi.c +++ b/src/soc/intel/baytrail/acpi.c @@ -85,16 +85,6 @@ int acpi_sci_irq(void) return sci_irq; } -unsigned long acpi_fill_madt(unsigned long current) -{ - /* IOAPIC */ - current += acpi_create_madt_ioapic_from_hw((acpi_madt_ioapic_t *)current, IO_APIC_ADDR); - - current = acpi_madt_irq_overrides(current); - - return current; -} - static acpi_tstate_t soc_tss_table[] = { { 100, 1000, 0, 0x00, 0 }, { 88, 875, 0, 0x1e, 0 }, @@ -286,7 +276,7 @@ void generate_cpu_entries(const struct device *device) acpigen_write_processor_cnot(pattrs->num_cpus); } -unsigned long acpi_madt_irq_overrides(unsigned long current) +static unsigned long acpi_madt_irq_overrides(unsigned long current) { int sci_irq = acpi_sci_irq(); acpi_madt_irqoverride_t *irqovr; @@ -306,3 +296,13 @@ unsigned long acpi_madt_irq_overrides(unsigned long current) return current; } + +unsigned long acpi_fill_madt(unsigned long current) +{ + /* IOAPIC */ + current += acpi_create_madt_ioapic_from_hw((acpi_madt_ioapic_t *)current, IO_APIC_ADDR); + + current = acpi_madt_irq_overrides(current); + + return current; +} diff --git a/src/soc/intel/baytrail/include/soc/acpi.h b/src/soc/intel/baytrail/include/soc/acpi.h index d629b242eb..b747db7d33 100644 --- a/src/soc/intel/baytrail/include/soc/acpi.h +++ b/src/soc/intel/baytrail/include/soc/acpi.h @@ -6,6 +6,5 @@ #include <acpi/acpi.h> int acpi_sci_irq(void); -unsigned long acpi_madt_irq_overrides(unsigned long current); #endif /* _BAYTRAIL_ACPI_H_ */ |