AGESA fam16: Drop HyperTransport scan
Already done for fam15tn/rl. Change-Id: Id74ca13610a4ef407c866a4419139287413078a4 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/8531 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
a9330e051a
commit
976d91c07e
|
@ -458,31 +458,6 @@ static void set_resources(device_t dev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0 /* TODO: Check if needed. */
|
|
||||||
static unsigned scan_chains(device_t dev, unsigned max)
|
|
||||||
{
|
|
||||||
unsigned nodeid;
|
|
||||||
struct bus *link;
|
|
||||||
device_t io_hub = NULL;
|
|
||||||
u32 next_unitid = 0x18;
|
|
||||||
nodeid = amdfam16_nodeid(dev);
|
|
||||||
if (nodeid == 0) {
|
|
||||||
for (link = dev->link_list; link; link = link->next) {
|
|
||||||
//if (link->link_num == sblink) { /* devicetree put IO Hub on link_lsit[sblink] */
|
|
||||||
if (link->link_num == 0) { /* devicetree put IO Hub on link_lsit[0] */
|
|
||||||
io_hub = link->children;
|
|
||||||
if (!io_hub || !io_hub->enabled) {
|
|
||||||
die("I can't find the IO Hub, or IO Hub not enabled, please check the device tree.\n");
|
|
||||||
}
|
|
||||||
/* Now that nothing is overlapping it is safe to scan the children. */
|
|
||||||
max = pci_scan_bus(link, 0x00, ((next_unitid - 1) << 3) | 7, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return max;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
unsigned long acpi_fill_hest(acpi_hest_t *hest)
|
unsigned long acpi_fill_hest(acpi_hest_t *hest)
|
||||||
{
|
{
|
||||||
|
@ -631,7 +606,6 @@ static struct device_operations northbridge_operations = {
|
||||||
.init = DEVICE_NOOP,
|
.init = DEVICE_NOOP,
|
||||||
.acpi_fill_ssdt_generator = northbridge_fill_ssdt_generator,
|
.acpi_fill_ssdt_generator = northbridge_fill_ssdt_generator,
|
||||||
.write_acpi_tables = agesa_write_acpi_tables,
|
.write_acpi_tables = agesa_write_acpi_tables,
|
||||||
//.scan_bus = scan_chains, /* TODO: */
|
|
||||||
.enable = 0,
|
.enable = 0,
|
||||||
.ops_pci = 0,
|
.ops_pci = 0,
|
||||||
};
|
};
|
||||||
|
|
|
@ -446,31 +446,6 @@ static void set_resources(device_t dev)
|
||||||
static void northbridge_init(struct device *dev)
|
static void northbridge_init(struct device *dev)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#if 0 /* TODO: Check if needed. */
|
|
||||||
static unsigned scan_chains(device_t dev, unsigned max)
|
|
||||||
{
|
|
||||||
unsigned nodeid;
|
|
||||||
struct bus *link;
|
|
||||||
device_t io_hub = NULL;
|
|
||||||
u32 next_unitid = 0x18;
|
|
||||||
nodeid = amdfam16_nodeid(dev);
|
|
||||||
if (nodeid == 0) {
|
|
||||||
for (link = dev->link_list; link; link = link->next) {
|
|
||||||
//if (link->link_num == sblink) { /* devicetree put IO Hub on link_lsit[sblink] */
|
|
||||||
if (link->link_num == 0) { /* devicetree put IO Hub on link_lsit[0] */
|
|
||||||
io_hub = link->children;
|
|
||||||
if (!io_hub || !io_hub->enabled) {
|
|
||||||
die("I can't find the IO Hub, or IO Hub not enabled, please check the device tree.\n");
|
|
||||||
}
|
|
||||||
/* Now that nothing is overlapping it is safe to scan the children. */
|
|
||||||
max = pci_scan_bus(link, 0x00, ((next_unitid - 1) << 3) | 7, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return max;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
unsigned long acpi_fill_hest(acpi_hest_t *hest)
|
unsigned long acpi_fill_hest(acpi_hest_t *hest)
|
||||||
{
|
{
|
||||||
|
@ -618,7 +593,6 @@ static struct device_operations northbridge_operations = {
|
||||||
.init = northbridge_init,
|
.init = northbridge_init,
|
||||||
.acpi_fill_ssdt_generator = northbridge_fill_ssdt_generator,
|
.acpi_fill_ssdt_generator = northbridge_fill_ssdt_generator,
|
||||||
.write_acpi_tables = agesa_write_acpi_tables,
|
.write_acpi_tables = agesa_write_acpi_tables,
|
||||||
//.scan_bus = scan_chains, /* TODO: */
|
|
||||||
.enable = 0,
|
.enable = 0,
|
||||||
.ops_pci = 0,
|
.ops_pci = 0,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue