Nishad Kamdar | 3e45ed3 | 2020-04-04 14:51:40 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Gregory CLEMENT | 9737479 | 2014-05-15 12:17:33 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2014 Marvell |
| 4 | * |
| 5 | * Gregory Clement <gregory.clement@free-electrons.com> |
Gregory CLEMENT | 9737479 | 2014-05-15 12:17:33 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __LINUX_XHCI_MVEBU_H |
| 9 | #define __LINUX_XHCI_MVEBU_H |
Felipe Balbi | 72d4b28 | 2016-04-22 13:17:15 +0300 | [diff] [blame] | 10 | |
| 11 | struct usb_hcd; |
| 12 | |
Gregory CLEMENT | 9737479 | 2014-05-15 12:17:33 +0200 | [diff] [blame] | 13 | #if IS_ENABLED(CONFIG_USB_XHCI_MVEBU) |
Felipe Balbi | 72d4b28 | 2016-04-22 13:17:15 +0300 | [diff] [blame] | 14 | int xhci_mvebu_mbus_init_quirk(struct usb_hcd *hcd); |
Pali Rohár | 3241929 | 2021-02-01 16:08:03 +0100 | [diff] [blame] | 15 | int xhci_mvebu_a3700_plat_setup(struct usb_hcd *hcd); |
Ofer Heifetz | 12453a8 | 2019-01-29 10:23:41 +0100 | [diff] [blame] | 16 | int xhci_mvebu_a3700_init_quirk(struct usb_hcd *hcd); |
Gregory CLEMENT | 9737479 | 2014-05-15 12:17:33 +0200 | [diff] [blame] | 17 | #else |
Felipe Balbi | 72d4b28 | 2016-04-22 13:17:15 +0300 | [diff] [blame] | 18 | static inline int xhci_mvebu_mbus_init_quirk(struct usb_hcd *hcd) |
Gregory CLEMENT | 9737479 | 2014-05-15 12:17:33 +0200 | [diff] [blame] | 19 | { |
| 20 | return 0; |
| 21 | } |
Ofer Heifetz | 12453a8 | 2019-01-29 10:23:41 +0100 | [diff] [blame] | 22 | |
Pali Rohár | 3241929 | 2021-02-01 16:08:03 +0100 | [diff] [blame] | 23 | static inline int xhci_mvebu_a3700_plat_setup(struct usb_hcd *hcd) |
| 24 | { |
| 25 | return 0; |
| 26 | } |
| 27 | |
Ofer Heifetz | 12453a8 | 2019-01-29 10:23:41 +0100 | [diff] [blame] | 28 | static inline int xhci_mvebu_a3700_init_quirk(struct usb_hcd *hcd) |
| 29 | { |
| 30 | return 0; |
| 31 | } |
Gregory CLEMENT | 9737479 | 2014-05-15 12:17:33 +0200 | [diff] [blame] | 32 | #endif |
| 33 | #endif /* __LINUX_XHCI_MVEBU_H */ |