diff options
author | Zheng Bao <zheng.bao@amd.com> | 2010-03-26 01:43:30 +0000 |
---|---|---|
committer | Zheng Bao <Zheng.Bao@amd.com> | 2010-03-26 01:43:30 +0000 |
commit | 0735142bdd2aba4cf47ee5ddde6f9696b55f9791 (patch) | |
tree | 59f935fe81058639ddd21c74f875123499c3180f /src/mainboard/amd/mahogany/acpi_tables.c | |
parent | b56f2d0ad4bfc81e7ef5ffd406c652f2c3bd954a (diff) | |
download | coreboot-0735142bdd2aba4cf47ee5ddde6f9696b55f9791.tar.xz |
1. Remove warnings and multiple blank lines.
2. Mahogany uses GPIO9 to detect 80-pin IDE cable.
Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5300 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/amd/mahogany/acpi_tables.c')
-rw-r--r-- | src/mainboard/amd/mahogany/acpi_tables.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainboard/amd/mahogany/acpi_tables.c b/src/mainboard/amd/mahogany/acpi_tables.c index 248c0f888e..ec99acf193 100644 --- a/src/mainboard/amd/mahogany/acpi_tables.c +++ b/src/mainboard/amd/mahogany/acpi_tables.c @@ -101,6 +101,7 @@ unsigned long acpi_fill_madt(unsigned long current) extern void get_bus_conf(void); +#if CONFIG_ACPI_SSDTX_NUM >= 1 static void update_ssdtx(void *ssdtx, int i) { uint8_t *PCI; @@ -122,6 +123,7 @@ static void update_ssdtx(void *ssdtx, int i) /* FIXME: need to update the GSI id in the ssdtx too */ } +#endif unsigned long acpi_fill_ssdt_generator(unsigned long current, const char *oem_table_id) { k8acpi_write_vars(); @@ -140,6 +142,11 @@ unsigned long write_acpi_tables(unsigned long start) acpi_facs_t *facs; acpi_header_t *dsdt; acpi_header_t *ssdt; +#if CONFIG_ACPI_SSDTX_NUM >= 1 + acpi_header_t *ssdtx; + acpi_header_t const *p; + int i; +#endif get_bus_conf(); /* it will get sblk, pci1234, hcdn, and sbdn */ |