summaryrefslogtreecommitdiff
path: root/src/soc/amd/picasso/usb.c
diff options
context:
space:
mode:
authorMarshall Dawson <marshalldawson3rd@gmail.com>2019-06-11 12:34:04 -0600
committerMartin Roth <martinroth@google.com>2019-07-03 21:41:04 +0000
commit19ea0169108dc2eff743ae640a8108eb5852612d (patch)
tree90a9e0463572f14ae900b631495e7d55c26d61da /src/soc/amd/picasso/usb.c
parent7e5a2660bc927adac1fc420f94c111b8f8aae191 (diff)
downloadcoreboot-19ea0169108dc2eff743ae640a8108eb5852612d.tar.xz
soc/amd/picasso: Remove most stoneyridge USB
Picasso doesn't implement the AcpiMmio XHCI_PM registers. Remove source that uses these. Remove USB devices from the AOAC registers. Remove the D0/D3 support from ASL, including all supporting xHCI firmware loading support. Remove xHCI firmware from amdfw.rom. Change-Id: Iae4c72c5a8e353ca8db02d04735f8d2b28441793 Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33752 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Diffstat (limited to 'src/soc/amd/picasso/usb.c')
-rw-r--r--src/soc/amd/picasso/usb.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/soc/amd/picasso/usb.c b/src/soc/amd/picasso/usb.c
index 00f82375e8..ae6c476055 100644
--- a/src/soc/amd/picasso/usb.c
+++ b/src/soc/amd/picasso/usb.c
@@ -29,17 +29,13 @@ static void set_usb_over_current(struct device *dev)
uint16_t map = USB_OC_DISABLE_ALL;
if (dev->path.pci.devfn == XHCI_DEVFN) {
- if (mainboard_get_xhci_oc_map(&map) == 0) {
- xhci_pm_write32(XHCI_PM_INDIRECT_INDEX,
- XHCI_OVER_CURRENT_CONTROL);
- xhci_pm_write16(XHCI_PM_INDIRECT_DATA, map);
- }
+ if (mainboard_get_xhci_oc_map(&map) == 0)
+ ; // TODO
}
- if (dev->path.pci.devfn == EHCI1_DEVFN) {
+ if (dev->path.pci.devfn == EHCI1_DEVFN)
if (mainboard_get_ehci_oc_map(&map) == 0)
- pci_write_config16(dev, EHCI_OVER_CURRENT_CONTROL, map);
- }
+ ; // TODO
}
int __weak mainboard_get_xhci_oc_map(uint16_t *map)