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_fam10/acpi_tables.c | |
parent | b56f2d0ad4bfc81e7ef5ffd406c652f2c3bd954a (diff) |
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_fam10/acpi_tables.c')
-rw-r--r-- | src/mainboard/amd/mahogany_fam10/acpi_tables.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mainboard/amd/mahogany_fam10/acpi_tables.c b/src/mainboard/amd/mahogany_fam10/acpi_tables.c index 878141da54..203254b0db 100644 --- a/src/mainboard/amd/mahogany_fam10/acpi_tables.c +++ b/src/mainboard/amd/mahogany_fam10/acpi_tables.c @@ -92,7 +92,8 @@ unsigned long acpi_fill_madt(unsigned long current) extern void get_bus_conf(void); extern void update_ssdt(void *ssdt); - +/* not tested yet. */ +#if CONFIG_ACPI_SSDTX_NUM >= 1 static void update_ssdtx(void *ssdtx, int i) { u8 *PCI; @@ -115,6 +116,7 @@ static void update_ssdtx(void *ssdtx, int i) /* FIXME: need to update the GSI id in the ssdtx too */ } +#endif unsigned long write_acpi_tables(unsigned long start) { @@ -129,10 +131,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 @@ -204,7 +207,7 @@ unsigned long write_acpi_tables(unsigned long start) printk(BIOS_DEBUG, "ACPI: * SSDT for PState at %lx\n", current); current = acpi_add_ssdt_pstates(rsdp, current); -#if 0 //CONFIG_ACPI_SSDTX_NUM >= 1 +#if CONFIG_ACPI_SSDTX_NUM >= 1 /* same htio, but different possition? We may have to copy, change HCIN, and recalculate the checknum and add_table */ |