diff options
author | Iru Cai <mytbk920423@gmail.com> | 2020-11-09 00:24:58 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2020-11-14 18:10:49 +0800 |
commit | e5e233e6d9dc12dbccdf07b810869d659954129c (patch) | |
tree | 7f554c61f34ccb1b45011aba6230853f20410a1b /src/mainboard/hp/folio_9480m_bdw/acpi_tables.c | |
parent | 6615c6eaf798556b94ecc44d241222d6b19cd119 (diff) | |
download | coreboot-e5e233e6d9dc12dbccdf07b810869d659954129c.tar.xz |
[HACK] Add soc/broadwell based hp/folio_9480m code
The laptop still boots with this code.
Change-Id: I0d74c59ff8e8f32f49627fb7edc270887ebd5339
Signed-off-by: Iru Cai <mytbk920423@gmail.com>
Diffstat (limited to 'src/mainboard/hp/folio_9480m_bdw/acpi_tables.c')
-rw-r--r-- | src/mainboard/hp/folio_9480m_bdw/acpi_tables.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mainboard/hp/folio_9480m_bdw/acpi_tables.c b/src/mainboard/hp/folio_9480m_bdw/acpi_tables.c new file mode 100644 index 0000000000..ca6f64b089 --- /dev/null +++ b/src/mainboard/hp/folio_9480m_bdw/acpi_tables.c @@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <acpi/acpi.h> +#include <acpi/acpi_gnvs.h> +#include <arch/ioapic.h> +#include <soc/acpi.h> +#include <soc/nvs.h> + +void acpi_create_gnvs(struct global_nvs *gnvs) +{ + acpi_init_gnvs(gnvs); +} + +unsigned long acpi_fill_madt(unsigned long current) +{ + /* Local APICs */ + current = acpi_create_madt_lapics(current); + + /* IOAPIC */ + current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *) current, + 2, IO_APIC_ADDR, 0); + + return acpi_madt_irq_overrides(current); +} |