mb/aopen/dxplplusu: Iterate CPUs for ACPI MADT
Change-Id: I64e5f5ee59859564c31ebb6f73b91d3d36be7d77 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69526 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
bbba201165
commit
6c78b9115d
|
@ -1,10 +1,5 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
/*
|
|
||||||
* Ported to Intel XE7501DEVKIT by Agami Aruma
|
|
||||||
* Ported to AOpen DXPL Plus-U by Kyösti Mälkki
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <acpi/acpi.h>
|
#include <acpi/acpi.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
|
|
||||||
|
@ -13,11 +8,7 @@ unsigned long acpi_fill_madt(unsigned long current)
|
||||||
struct device *bdev, *dev = NULL;
|
struct device *bdev, *dev = NULL;
|
||||||
struct resource *res = NULL;
|
struct resource *res = NULL;
|
||||||
|
|
||||||
/* SJM: Hard-code CPU LAPIC entries for now */
|
current = acpi_create_madt_lapics(current);
|
||||||
current += acpi_create_madt_lapic((acpi_madt_lapic_t *)current, 0, 0);
|
|
||||||
current += acpi_create_madt_lapic((acpi_madt_lapic_t *)current, 1, 6);
|
|
||||||
current += acpi_create_madt_lapic((acpi_madt_lapic_t *)current, 2, 1);
|
|
||||||
current += acpi_create_madt_lapic((acpi_madt_lapic_t *)current, 3, 7);
|
|
||||||
|
|
||||||
/* Southbridge IOAPIC */
|
/* Southbridge IOAPIC */
|
||||||
current += acpi_create_madt_ioapic_from_hw((acpi_madt_ioapic_t *)current, 0xfec00000);
|
current += acpi_create_madt_ioapic_from_hw((acpi_madt_ioapic_t *)current, 0xfec00000);
|
||||||
|
|
Loading…
Reference in New Issue