Initial PCIe tuning: Enable Active State Power Management (ASPM)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5030 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
2e73e19751
commit
f6eb88adfb
|
@ -34,8 +34,16 @@ static void pciexp_tune_dev(device_t dev)
|
||||||
/* error... */
|
/* error... */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// printk_debug("PCIe: tuning %s\n", dev_path(dev));
|
#ifdef CONFIG_PCIE_TUNING
|
||||||
/* TODO: Implement PCI Express tuning. */
|
printk_debug("PCIe: tuning %s\n", dev_path(dev));
|
||||||
|
|
||||||
|
// TODO make this depending on ASPM
|
||||||
|
/* Enable ASPM Role Based Error Reporting */
|
||||||
|
u32 reg32;
|
||||||
|
reg32 = pci_read_config32(dev, cap + PCI_EXP_DEVCAP);
|
||||||
|
reg32 |= PCI_EXP_DEVCAP_RBER;
|
||||||
|
pci_write_config32(dev, cap + PCI_EXP_DEVCAP, reg32);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int pciexp_scan_bus(struct bus *bus,
|
unsigned int pciexp_scan_bus(struct bus *bus,
|
||||||
|
|
Loading…
Reference in New Issue