diff options
Diffstat (limited to 'include/linux/usb/xhci_pdriver.h')
-rw-r--r-- | include/linux/usb/xhci_pdriver.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/usb/xhci_pdriver.h b/include/linux/usb/xhci_pdriver.h new file mode 100644 index 000000000000..a25043b8c8aa --- /dev/null +++ b/include/linux/usb/xhci_pdriver.h @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Xilinx Zynq MPSoC Firmware layer + * + * Copyright (C) 2018-2020 Xilinx, Inc. + * + * Michal Simek <michal.simek@xilinx.com> + * Anurag Kumar Vulisha <anuragku@xilinx.com> + */ +#ifndef __USB_CORE_XHCI_PDRIVER_H +#define __USB_CORE_XHCI_PDRIVER_H + +/* Call dwc3_host_wakeup_capable() only for dwc3 DRD mode or HOST only mode */ +#if (IS_REACHABLE(CONFIG_USB_DWC3_HOST) || \ + (IS_REACHABLE(CONFIG_USB_DWC3_OF_SIMPLE) && \ + !IS_REACHABLE(CONFIG_USB_DWC3_GADGET))) + +/* Let the dwc3 driver know about device wakeup capability */ +void dwc3_host_wakeup_capable(struct device *dev, bool wakeup); + +#else +void dwc3_host_wakeup_capable(struct device *dev, bool wakeup) +{ ; } +#endif + +#endif /* __USB_CORE_XHCI_PDRIVER_H */ |