diff options
author | Nicolas Saenz Julienne | 2020-06-29 18:37:25 +0200 |
---|---|---|
committer | Matthias Brugger | 2020-07-10 11:49:28 +0200 |
commit | 0b80371b350e6732a02d5e39bf900413ae1271ba (patch) | |
tree | c6b01968e0d4c12b8614590cd3616cf97e29af93 /include | |
parent | 6836d59094727423086dbc27fd7732f514495af4 (diff) |
usb: xhci: Add reset controller support
Some atypical users of xhci might need to manually reset their xHCI
controller before starting the HCD setup. Check if a reset controller
device is available to the PCI bus and trigger a reset.
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
[mb: squash fix to only build xhci_reset_hw() if CONFIG_DM_BUS]
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb/xhci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/usb/xhci.h b/include/usb/xhci.h index 1170c0ac69c..7d34103fd5c 100644 --- a/include/usb/xhci.h +++ b/include/usb/xhci.h @@ -16,6 +16,7 @@ #ifndef HOST_XHCI_H_ #define HOST_XHCI_H_ +#include <reset.h> #include <asm/types.h> #include <asm/cache.h> #include <asm/io.h> @@ -1209,6 +1210,7 @@ struct xhci_ctrl { #if CONFIG_IS_ENABLED(DM_USB) struct udevice *dev; #endif + struct reset_ctl reset; struct xhci_hccr *hccr; /* R/O registers, not need for volatile */ struct xhci_hcor *hcor; struct xhci_doorbell_array *dba; |