blob: 26041718a086cde7ef5ef3f4a396ec6b978e8672 [file] [log] [blame]
Pawel Laszczak7733f6c2019-08-26 12:19:30 +01001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Cadence USBSS DRD Driver - Host Export APIs
4 *
5 * Copyright (C) 2017-2018 NXP
6 *
7 * Authors: Peter Chen <peter.chen@nxp.com>
8 */
9#ifndef __LINUX_CDNS3_HOST_EXPORT
10#define __LINUX_CDNS3_HOST_EXPORT
11
Peter Chened227642020-05-22 17:56:30 +080012struct usb_hcd;
Pawel Laszczak7733f6c2019-08-26 12:19:30 +010013#ifdef CONFIG_USB_CDNS3_HOST
14
15int cdns3_host_init(struct cdns3 *cdns);
Peter Chened227642020-05-22 17:56:30 +080016int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd);
Pawel Laszczak7733f6c2019-08-26 12:19:30 +010017
18#else
19
20static inline int cdns3_host_init(struct cdns3 *cdns)
21{
22 return -ENXIO;
23}
24
25static inline void cdns3_host_exit(struct cdns3 *cdns) { }
Peter Chened227642020-05-22 17:56:30 +080026static inline int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd)
27{
28 return 0;
29}
Pawel Laszczak7733f6c2019-08-26 12:19:30 +010030
31#endif /* CONFIG_USB_CDNS3_HOST */
32
33#endif /* __LINUX_CDNS3_HOST_EXPORT */