coreboot-kgpe-d16/src/include
Angel Pons 79572e4f32 src: Make HAVE_CF9_RESET set the FADT reset register
All supported x86 chips select HAVE_CF9_RESET, and also use 0xcf9 as
reset register in FADT. How unsurprising. We might as well use that
information to automatically fill in the FADT accordingly. So, do it.

To avoid having x86-specific code under arch-agnostic `acpi/`, create a
new optional `arch_fill_fadt` function, and override it for x86 systems.

Tested on Asus P8Z77-V LX2 with Linux 5.7.6 and Windows 10 at the end of
the patch train, both operating systems are able to boot successfully.

Change-Id: Ib436b04aafd66c3ddfa205b870c1e95afb3e846d
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43389
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Frans Hendriks <fhendriks@eltan.com>
2020-07-20 13:23:13 +00:00
..
acpi src: Make HAVE_CF9_RESET set the FADT reset register 2020-07-20 13:23:13 +00:00
boot
console include/console/usb.h: Drop dead code 2020-07-09 23:51:09 +00:00
cpu include/cpu/amd/msr: move SMM_LOCK bit right after HWCR_MSR definition 2020-07-09 23:19:31 +00:00
device device: Increase DEVICE_PATH_MAX to 40 2020-07-17 23:32:59 +00:00
efi treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pc80 drivers/pc80/rtc: Drop ARCH_X86 guard in header 2020-06-06 09:40:17 +00:00
smp
superio treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
sys
adainit.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
assert.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
b64_decode.h treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
base3.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
bcd.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
boardid.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
boot_device.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
bootblock_common.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
bootmem.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
bootmode.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
bootsplash.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
bootstate.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
cbfs.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
cbmem.h arch/x86: Drop CBMEM_TOP_BACKUP 2020-07-11 14:48:25 +00:00
cper.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
crc_byte.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ctype.h
delay.h
device_tree.h treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
dimm_info_util.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
edid.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
elog.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
endian.h treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
espi.h Remove new additions of "this file is part of" lines 2020-05-13 08:37:21 +00:00
fallback.h
fit.h treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
fit_payload.h treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
fmap.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
fw_config.h fw_config: Add firmware configuration interface 2020-06-02 16:40:04 +00:00
gic.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
gpio.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
halt.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
imd.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
input-event-codes.h include/input-event-codes.h: Add Linux input key codes header file 2020-04-13 19:54:30 +00:00
inttypes.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ip_checksum.h
kconfig.h
lib.h src/include: improve the description of hexstrtobin 2020-07-07 17:27:00 +00:00
list.h treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
main_decl.h
memlayout.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
memory_info.h treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
memrange.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
mrc_cache.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
nhlt.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
option.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
post.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
program_loading.h ACPI: Clean up some S3 related leftovers 2020-06-18 12:54:46 +00:00
ramdetect.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
random.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
reg_script.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
region_file.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
reset.h
rmodule.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
romstage_handoff.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
rtc.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
rules.h treewide: Replace CONFIG(ARCH_xx) tests 2020-06-17 21:13:09 +00:00
sar.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
sdram_mode.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
smbios.h smbios: TYPE_NONE and TYPE_OTHER are already taken 2020-07-04 20:39:10 +00:00
smmstore.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
spd.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
spd_bin.h lib/spd_bin: add get_spd_sn function 2020-05-13 12:04:03 +00:00
spd_cache.h Remove new additions of "this file is part of" lines 2020-05-28 09:38:17 +00:00
spd_ddr2.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
spi-generic.h treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
spi_bitbang.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
spi_flash.h spi: Remove non_volatile flag from block protection interface 2020-06-08 07:51:18 +00:00
spi_sdcard.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
stage_cache.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
stdarg.h create stdio.h and stdarg.h for {,v}snprintf 2020-03-25 23:38:46 +00:00
stdbool.h
stddef.h Remove MAYBE_STATIC_BSS and ENV_STAGE_HAS_BSS_SECTION 2020-05-26 15:04:08 +00:00
stdint.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
stdio.h create stdio.h and stdarg.h for {,v}snprintf 2020-03-25 23:38:46 +00:00
stdlib.h
string.h lib: Add strtok() and strtok_r() 2020-05-28 09:52:51 +00:00
swab.h
symbols.h treewide: Replace CONFIG(ARCH_xx) tests 2020-06-17 21:13:09 +00:00
thread.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
timer.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
timestamp.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
trace.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
types.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
uuid.h include/uuid.h: Add missing include 2020-05-28 16:20:40 +00:00
vbe.h
version.h
watchdog.h
wrdd.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00