David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * omap_usb.h -- omap usb2 phy header file |
| 4 | * |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 5 | * Copyright (C) 2012-2020 Texas Instruments Incorporated - http://www.ti.com |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 6 | * Author: Kishon Vijay Abraham I <kishon@ti.com> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __DRIVERS_OMAP_USB2_H |
| 10 | #define __DRIVERS_OMAP_USB2_H |
| 11 | |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 12 | #include <linux/usb/phy_companion.h> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 13 | |
| 14 | #define phy_to_omapusb(x) container_of((x), struct omap_usb, phy) |
| 15 | |
| 16 | #if defined(CONFIG_OMAP_USB2) || defined(CONFIG_OMAP_USB2_MODULE) |
| 17 | extern int omap_usb2_set_comparator(struct phy_companion *comparator); |
| 18 | #else |
| 19 | static inline int omap_usb2_set_comparator(struct phy_companion *comparator) |
| 20 | { |
| 21 | return -ENODEV; |
| 22 | } |
| 23 | #endif |
| 24 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 25 | #endif /* __DRIVERS_OMAP_USB_H */ |