Greg Kroah-Hartman | 5fd54ac | 2017-11-03 11:28:30 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Yoshihiro Shimoda | 4ac8918 | 2014-07-09 10:08:52 +0900 | [diff] [blame] | 2 | /* |
| 3 | * drivers/usb/host/xhci-rcar.h |
| 4 | * |
| 5 | * Copyright (C) 2014 Renesas Electronics Corporation |
Yoshihiro Shimoda | 4ac8918 | 2014-07-09 10:08:52 +0900 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _XHCI_RCAR_H |
| 9 | #define _XHCI_RCAR_H |
| 10 | |
Yoshihiro Shimoda | 9bf9d9d | 2015-11-24 13:09:51 +0200 | [diff] [blame] | 11 | #define XHCI_RCAR_FIRMWARE_NAME_V1 "r8a779x_usb3_v1.dlmem" |
Yoshihiro Shimoda | 526a240 | 2015-11-24 13:09:53 +0200 | [diff] [blame] | 12 | #define XHCI_RCAR_FIRMWARE_NAME_V2 "r8a779x_usb3_v2.dlmem" |
Yoshihiro Shimoda | 125f0c0 | 2016-11-11 15:13:26 +0200 | [diff] [blame] | 13 | #define XHCI_RCAR_FIRMWARE_NAME_V3 "r8a779x_usb3_v3.dlmem" |
Yoshihiro Shimoda | 9bf9d9d | 2015-11-24 13:09:51 +0200 | [diff] [blame] | 14 | |
Yoshihiro Shimoda | 4ac8918 | 2014-07-09 10:08:52 +0900 | [diff] [blame] | 15 | #if IS_ENABLED(CONFIG_USB_XHCI_RCAR) |
| 16 | void xhci_rcar_start(struct usb_hcd *hcd); |
| 17 | int xhci_rcar_init_quirk(struct usb_hcd *hcd); |
Yoshihiro Shimoda | 435cc11 | 2017-04-19 16:55:48 +0300 | [diff] [blame] | 18 | int xhci_rcar_resume_quirk(struct usb_hcd *hcd); |
Yoshihiro Shimoda | 4ac8918 | 2014-07-09 10:08:52 +0900 | [diff] [blame] | 19 | #else |
| 20 | static inline void xhci_rcar_start(struct usb_hcd *hcd) |
| 21 | { |
| 22 | } |
| 23 | |
| 24 | static inline int xhci_rcar_init_quirk(struct usb_hcd *hcd) |
| 25 | { |
| 26 | return 0; |
| 27 | } |
Yoshihiro Shimoda | 435cc11 | 2017-04-19 16:55:48 +0300 | [diff] [blame] | 28 | |
| 29 | static inline int xhci_rcar_resume_quirk(struct usb_hcd *hcd) |
| 30 | { |
| 31 | return 0; |
| 32 | } |
Yoshihiro Shimoda | 4ac8918 | 2014-07-09 10:08:52 +0900 | [diff] [blame] | 33 | #endif |
| 34 | #endif /* _XHCI_RCAR_H */ |