summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Jones <marc.jones@se-eng.com>2012-05-10 11:02:32 -0600
committerPeter Stuge <peter@stuge.se>2012-05-12 04:30:34 +0200
commit7c9ef4f52ca5d02fe52f1b0673bc0536c84ae359 (patch)
tree3d529c519baea337462c680c3e9dd1c0f05e51ef
parentb547c4fc990c166e2b488196b1af56691852c976 (diff)
downloadcoreboot-7c9ef4f52ca5d02fe52f1b0673bc0536c84ae359.tar.xz
Add legacy free setting and override to fadt.c
The FADT iapc_boot_arch indicates the available information for accessing legacy devices. By default, the setting supports legacy. LEGACY_FREE and/or the iapc_boot_arch field may be customized. Change-Id: I5679741e1f8db923d3c00b57f6a5d813550f3a5e Signed-off-by: Marc Jones <marc.jones@se-eng.com> Reviewed-on: http://review.coreboot.org/1024 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Peter Stuge <peter@stuge.se>
-rw-r--r--src/southbridge/amd/cimx/sb800/fadt.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/southbridge/amd/cimx/sb800/fadt.c b/src/southbridge/amd/cimx/sb800/fadt.c
index f8888d33c3..6605b5383e 100644
--- a/src/southbridge/amd/cimx/sb800/fadt.c
+++ b/src/southbridge/amd/cimx/sb800/fadt.c
@@ -30,6 +30,13 @@
#include <device/device.h>
#include "SBPLATFORM.h"
+#ifndef FADT_BOOT_ARCH
+#if LEGACY_FREE
+ #define FADT_BOOT_ARCH (ACPI_FADT_LEGACY_DEVICES | ACPI_FADT_8042)
+#else
+ #define FADT_BOOT_ARCH ACPI_FADT_LEGACY_FREE
+#endif
+#endif
/*
* Reference section 5.2.9 Fixed ACPI Description Table (FADT)
@@ -115,7 +122,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
fadt->day_alrm = 0; /* 0x7d these have to be */
fadt->mon_alrm = 0; /* 0x7e added to cmos.layout */
fadt->century = 0; /* 0x7f to make rtc alrm work */
- fadt->iapc_boot_arch = ACPI_FADT_LEGACY_FREE; /* See table 5-10 */
+ fadt->iapc_boot_arch = FADT_BOOT_ARCH; /* See table 5-10 */
fadt->res2 = 0; /* reserved, MUST be 0 ACPI 3.0 */
fadt->flags = ACPI_FADT_WBINVD | /* See table 5-10 ACPI 3.0a spec */
ACPI_FADT_C1_SUPPORTED |