summaryrefslogtreecommitdiff
path: root/src/acpi
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2021-07-12 18:11:58 +0200
committerNick Vaccaro <nvaccaro@google.com>2021-08-19 18:16:04 +0000
commitd5811378dc1f6dbf77cd93a01f9df61c6e218f26 (patch)
treeaa1a151360a05dd9fe906631469d2efc635bae4a /src/acpi
parent6fcee7533c1a4036224339ae299e448e210ca78d (diff)
acpi: Fill fadt->century based on Kconfig
Change-Id: I916f19e022633b316fbc0c6bf38bbd58228412be Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56218 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Lance Zhao Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/acpi')
-rw-r--r--src/acpi/acpi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c
index 5f9767e818..2e15ea9cc8 100644
--- a/src/acpi/acpi.c
+++ b/src/acpi/acpi.c
@@ -26,6 +26,7 @@
#include <types.h>
#include <version.h>
#include <commonlib/sort.h>
+#include <pc80/mc146818rtc.h>
static acpi_rsdp_t *valid_rsdp(acpi_rsdp_t *rsdp);
@@ -1510,6 +1511,9 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
fadt->preferred_pm_profile = acpi_get_preferred_pm_profile();
+ if (CONFIG(USE_PC_CMOS_ALTCENTURY))
+ fadt->century = RTC_CLK_ALTCENTURY;
+
arch_fill_fadt(fadt);
acpi_fill_fadt(fadt);