blob: 804b6ab4246f20b29af67af8641fff1cc78dac28 [file] [log] [blame]
Greg Kroah-Hartman5fd54ac2017-11-03 11:28:30 +01001// SPDX-License-Identifier: GPL-2.0
Yoshihiro Shimoda4ac89182014-07-09 10:08:52 +09002/*
3 * drivers/usb/host/xhci-rcar.h
4 *
5 * Copyright (C) 2014 Renesas Electronics Corporation
Yoshihiro Shimoda4ac89182014-07-09 10:08:52 +09006 */
7
8#ifndef _XHCI_RCAR_H
9#define _XHCI_RCAR_H
10
Yoshihiro Shimoda9bf9d9d2015-11-24 13:09:51 +020011#define XHCI_RCAR_FIRMWARE_NAME_V1 "r8a779x_usb3_v1.dlmem"
Yoshihiro Shimoda526a2402015-11-24 13:09:53 +020012#define XHCI_RCAR_FIRMWARE_NAME_V2 "r8a779x_usb3_v2.dlmem"
Yoshihiro Shimoda125f0c02016-11-11 15:13:26 +020013#define XHCI_RCAR_FIRMWARE_NAME_V3 "r8a779x_usb3_v3.dlmem"
Yoshihiro Shimoda9bf9d9d2015-11-24 13:09:51 +020014
Yoshihiro Shimoda4ac89182014-07-09 10:08:52 +090015#if IS_ENABLED(CONFIG_USB_XHCI_RCAR)
16void xhci_rcar_start(struct usb_hcd *hcd);
17int xhci_rcar_init_quirk(struct usb_hcd *hcd);
Yoshihiro Shimoda435cc112017-04-19 16:55:48 +030018int xhci_rcar_resume_quirk(struct usb_hcd *hcd);
Yoshihiro Shimoda4ac89182014-07-09 10:08:52 +090019#else
20static inline void xhci_rcar_start(struct usb_hcd *hcd)
21{
22}
23
24static inline int xhci_rcar_init_quirk(struct usb_hcd *hcd)
25{
26 return 0;
27}
Yoshihiro Shimoda435cc112017-04-19 16:55:48 +030028
29static inline int xhci_rcar_resume_quirk(struct usb_hcd *hcd)
30{
31 return 0;
32}
Yoshihiro Shimoda4ac89182014-07-09 10:08:52 +090033#endif
34#endif /* _XHCI_RCAR_H */