2019-05-27 00:55:06 -06:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2012-09-06 08:57:06 -06:00
|
|
|
/*
|
|
|
|
* omap_usb.h -- omap usb2 phy header file
|
|
|
|
*
|
2020-05-15 02:05:15 -06:00
|
|
|
* Copyright (C) 2012-2020 Texas Instruments Incorporated - http://www.ti.com
|
2012-09-06 08:57:06 -06:00
|
|
|
* Author: Kishon Vijay Abraham I <kishon@ti.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DRIVERS_OMAP_USB2_H
|
|
|
|
#define __DRIVERS_OMAP_USB2_H
|
|
|
|
|
2020-05-15 02:05:15 -06:00
|
|
|
#include <linux/usb/phy_companion.h>
|
2015-12-21 01:54:13 -07:00
|
|
|
|
2012-09-06 08:57:06 -06:00
|
|
|
#define phy_to_omapusb(x) container_of((x), struct omap_usb, phy)
|
|
|
|
|
|
|
|
#if defined(CONFIG_OMAP_USB2) || defined(CONFIG_OMAP_USB2_MODULE)
|
|
|
|
extern int omap_usb2_set_comparator(struct phy_companion *comparator);
|
|
|
|
#else
|
|
|
|
static inline int omap_usb2_set_comparator(struct phy_companion *comparator)
|
|
|
|
{
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __DRIVERS_OMAP_USB_H */
|