Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/41917 )
Change subject: acpi,mb/*: Use motherboard_fill_fadt() ......................................................................
acpi,mb/*: Use motherboard_fill_fadt()
Change-Id: I0453c0edc9aeb86cf4f5d912613b8fa8beb63ab4 Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/mainboard/facebook/fbg1701/acpi_tables.c M src/mainboard/facebook/fbg1701/fadt.c M src/mainboard/portwell/m107/acpi_tables.c M src/mainboard/portwell/m107/fadt.c M src/mainboard/protectli/vault_bsw/acpi_tables.c M src/mainboard/protectli/vault_bsw/fadt.c 6 files changed, 18 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/17/41917/1
diff --git a/src/mainboard/facebook/fbg1701/acpi_tables.c b/src/mainboard/facebook/fbg1701/acpi_tables.c index 539a74e..fc0aa60 100644 --- a/src/mainboard/facebook/fbg1701/acpi_tables.c +++ b/src/mainboard/facebook/fbg1701/acpi_tables.c @@ -37,3 +37,8 @@
return current; } + +void motherboard_fill_fadt(acpi_fadt_t *fadt) +{ + fadt->iapc_boot_arch &= ~ACPI_FADT_8042; +} diff --git a/src/mainboard/facebook/fbg1701/fadt.c b/src/mainboard/facebook/fbg1701/fadt.c index 3785f15..9f8f058 100644 --- a/src/mainboard/facebook/fbg1701/fadt.c +++ b/src/mainboard/facebook/fbg1701/fadt.c @@ -26,8 +26,7 @@ fadt->x_dsdt_h = 0;
acpi_fill_in_fadt(fadt); - - fadt->iapc_boot_arch &= ~ACPI_FADT_8042; + motherboard_fill_fadt(fadt);
header->checksum = acpi_checksum((void *) fadt, header->length); diff --git a/src/mainboard/portwell/m107/acpi_tables.c b/src/mainboard/portwell/m107/acpi_tables.c index 539a74e..fc0aa60 100644 --- a/src/mainboard/portwell/m107/acpi_tables.c +++ b/src/mainboard/portwell/m107/acpi_tables.c @@ -37,3 +37,8 @@
return current; } + +void motherboard_fill_fadt(acpi_fadt_t *fadt) +{ + fadt->iapc_boot_arch &= ~ACPI_FADT_8042; +} diff --git a/src/mainboard/portwell/m107/fadt.c b/src/mainboard/portwell/m107/fadt.c index 3785f15..9f8f058 100644 --- a/src/mainboard/portwell/m107/fadt.c +++ b/src/mainboard/portwell/m107/fadt.c @@ -26,8 +26,7 @@ fadt->x_dsdt_h = 0;
acpi_fill_in_fadt(fadt); - - fadt->iapc_boot_arch &= ~ACPI_FADT_8042; + motherboard_fill_fadt(fadt);
header->checksum = acpi_checksum((void *) fadt, header->length); diff --git a/src/mainboard/protectli/vault_bsw/acpi_tables.c b/src/mainboard/protectli/vault_bsw/acpi_tables.c index f502741..b80f83f 100644 --- a/src/mainboard/protectli/vault_bsw/acpi_tables.c +++ b/src/mainboard/protectli/vault_bsw/acpi_tables.c @@ -27,3 +27,8 @@
return current; } + +void motherboard_fill_fadt(acpi_fadt_t *fadt) +{ + fadt->iapc_boot_arch = ACPI_FADT_LEGACY_DEVICES; +} diff --git a/src/mainboard/protectli/vault_bsw/fadt.c b/src/mainboard/protectli/vault_bsw/fadt.c index 755ac6e..8a23eba 100644 --- a/src/mainboard/protectli/vault_bsw/fadt.c +++ b/src/mainboard/protectli/vault_bsw/fadt.c @@ -27,8 +27,7 @@ fadt->x_dsdt_h = 0;
acpi_fill_in_fadt(fadt); - - fadt->iapc_boot_arch = ACPI_FADT_LEGACY_DEVICES; + motherboard_fill_fadt(fadt);
header->checksum = acpi_checksum((void *)fadt, header->length); }