summaryrefslogtreecommitdiff
path: root/src/arch/x86/acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/acpi.c')
-rw-r--r--src/arch/x86/acpi.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/arch/x86/acpi.c b/src/arch/x86/acpi.c
index e1ef97884c..ffa3463259 100644
--- a/src/arch/x86/acpi.c
+++ b/src/arch/x86/acpi.c
@@ -3,6 +3,7 @@
#include <acpi/acpi.h>
#include <cf9_reset.h>
#include <cpu/x86/smm.h>
+#include <pc80/mc146818rtc.h>
void arch_fill_fadt(acpi_fadt_t *fadt)
{
@@ -24,4 +25,14 @@ void arch_fill_fadt(acpi_fadt_t *fadt)
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
}
+
+ if (CONFIG(PC80_SYSTEM)) {
+ /* Currently these are defined to support date alarm only. */
+ fadt->day_alrm = RTC_DATE_ALARM;
+ fadt->mon_alrm = RTC_MONTH_ALARM;
+ }
+
+ /* Careful with USE_OPTION_TABLE. */
+ if (CONFIG(USE_PC_CMOS_ALTCENTURY))
+ fadt->century = RTC_CLK_ALTCENTURY;
}