diff options
author | Martin Roth <martin.roth@se-eng.com> | 2013-01-18 12:55:40 -0700 |
---|---|---|
committer | Martin Roth <martin.roth@se-eng.com> | 2013-01-21 18:55:33 +0100 |
commit | f5726ea544af904061b754fb6e369e477e93f0a5 (patch) | |
tree | d6a551008e87cff5ad02f3ea567e2f3a79a40674 /src/mainboard/amd/thatcher/get_bus_conf.c | |
parent | 2892023fd422794bb82658dde3e8d489af2bdd55 (diff) | |
download | coreboot-f5726ea544af904061b754fb6e369e477e93f0a5.tar.xz |
Hudson: Cleanup - change SB800 references to hudson
Go through southbridge/amd/agesa/hudson, thatcher and parmer
mainboard directories and change all references to sb800 to
reference hudson instead.
This is just cleanup and should make no functional difference.
Change-Id: Icd6a9a08c4bbf5e1aed394362d24c05811ed1fba
Signed-off-by: Martin Roth <martin.roth@se-eng.com>
Reviewed-on: http://review.coreboot.org/2177
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marcj303@gmail.com>
Reviewed-by: Dave Frodin <dave.frodin@se-eng.com>
Diffstat (limited to 'src/mainboard/amd/thatcher/get_bus_conf.c')
-rw-r--r-- | src/mainboard/amd/thatcher/get_bus_conf.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/mainboard/amd/thatcher/get_bus_conf.c b/src/mainboard/amd/thatcher/get_bus_conf.c index 2636b9e49a..47b4f74626 100644 --- a/src/mainboard/amd/thatcher/get_bus_conf.c +++ b/src/mainboard/amd/thatcher/get_bus_conf.c @@ -30,8 +30,8 @@ * and acpi_tables busnum is default. */ u8 bus_isa; -u8 bus_sb800[3]; -u32 apicid_sb800; +u8 bus_hudson[3]; +u32 apicid_hudson; /* * Here you only need to set value in pci1234 for HT-IO that could be installed or not @@ -43,7 +43,7 @@ u32 pci1234x[] = { }; u32 bus_type[256]; -u32 sbdn_sb800; +u32 sbdn_hudson; static u32 get_bus_conf_done = 0; @@ -95,10 +95,10 @@ void get_bus_conf(void) printk(BIOS_DEBUG, "agesawrapper_amdinitlate failed: %x \n", status); #endif - sbdn_sb800 = 0; + sbdn_hudson = 0; for (i = 0; i < 3; i++) { - bus_sb800[i] = 0; + bus_hudson[i] = 0; } for (i = 0; i < 256; i++) { @@ -107,34 +107,33 @@ void get_bus_conf(void) bus_type[0] = 1; /* pci */ - // bus_sb800[0] = (sysconf.pci1234[0] >> 16) & 0xff; - bus_sb800[0] = (pci1234x[0] >> 16) & 0xff; + bus_hudson[0] = (pci1234x[0] >> 16) & 0xff; - /* sb800 */ - dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, 4)); + /* Hudson */ + dev = dev_find_slot(bus_hudson[0], PCI_DEVFN(sbdn_hudson + 0x14, 4)); if (dev) { - bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS); + bus_hudson[1] = pci_read_config8(dev, PCI_SECONDARY_BUS); bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS); bus_isa++; - for (j = bus_sb800[1]; j < bus_isa; j++) + for (j = bus_hudson[1]; j < bus_isa; j++) bus_type[j] = 1; } for (i = 0; i < 4; i++) { - dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i)); + dev = dev_find_slot(bus_hudson[0], PCI_DEVFN(sbdn_hudson + 0x14, i)); if (dev) { - bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS); + bus_hudson[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS); bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS); bus_isa++; } } - for (j = bus_sb800[2]; j < bus_isa; j++) + for (j = bus_hudson[2]; j < bus_isa; j++) bus_type[j] = 1; /* I/O APICs: APIC ID Version State Address */ bus_isa = 10; apicid_base = CONFIG_MAX_CPUS; - apicid_sb800 = apicid_base; + apicid_hudson = apicid_base; } |