blob: e23b52df93ec8ce21d47d33ee7e2fd85665989e6 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-or-later */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * omap_usb.h -- omap usb2 phy header file
4 *
Olivier Deprez157378f2022-04-04 15:47:50 +02005 * Copyright (C) 2012-2020 Texas Instruments Incorporated - http://www.ti.com
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00006 * Author: Kishon Vijay Abraham I <kishon@ti.com>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00007 */
8
9#ifndef __DRIVERS_OMAP_USB2_H
10#define __DRIVERS_OMAP_USB2_H
11
Olivier Deprez157378f2022-04-04 15:47:50 +020012#include <linux/usb/phy_companion.h>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000013
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)
17extern int omap_usb2_set_comparator(struct phy_companion *comparator);
18#else
19static inline int omap_usb2_set_comparator(struct phy_companion *comparator)
20{
21 return -ENODEV;
22}
23#endif
24
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000025#endif /* __DRIVERS_OMAP_USB_H */