diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2016-05-25 19:19:13 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2016-05-30 10:21:12 +0800 |
commit | d3d664725b4a05cf32d905ff806b44bb01fa61c0 (patch) | |
tree | ff2ed626ac8e6ea9b345dab90fa72a3f32dda0a4 /arch/x86 | |
parent | e6ddb6b0135949e67bf5face7bdff522e493e1e2 (diff) | |
download | u-boot-imx-d3d664725b4a05cf32d905ff806b44bb01fa61c0.zip u-boot-imx-d3d664725b4a05cf32d905ff806b44bb01fa61c0.tar.gz u-boot-imx-d3d664725b4a05cf32d905ff806b44bb01fa61c0.tar.bz2 |
x86: baytrail: acpi: Fix I/O APIC ID in the MADT table
So far this is hardcoded to 2, but it should really be read
from the I/O APIC register.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/cpu/baytrail/acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/baytrail/acpi.c b/arch/x86/cpu/baytrail/acpi.c index 1d54f7d..5ee4868 100644 --- a/arch/x86/cpu/baytrail/acpi.c +++ b/arch/x86/cpu/baytrail/acpi.c @@ -155,7 +155,7 @@ u32 acpi_fill_madt(u32 current) current += acpi_create_madt_lapics(current); current += acpi_create_madt_ioapic((struct acpi_madt_ioapic *)current, - 2, IO_APIC_ADDR, 0); + io_apic_read(IO_APIC_ID) >> 24, IO_APIC_ADDR, 0); current += acpi_create_madt_irq_overrides(current); |