Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * omap_usb.h -- omap usb2 phy header file
0004  *
0005  * Copyright (C) 2012-2020 Texas Instruments Incorporated - http://www.ti.com
0006  * Author: Kishon Vijay Abraham I <kishon@ti.com>
0007  */
0008 
0009 #ifndef __DRIVERS_OMAP_USB2_H
0010 #define __DRIVERS_OMAP_USB2_H
0011 
0012 #include <linux/usb/phy_companion.h>
0013 
0014 #define phy_to_omapusb(x)   container_of((x), struct omap_usb, phy)
0015 
0016 #if defined(CONFIG_OMAP_USB2) || defined(CONFIG_OMAP_USB2_MODULE)
0017 extern int omap_usb2_set_comparator(struct phy_companion *comparator);
0018 #else
0019 static inline int omap_usb2_set_comparator(struct phy_companion *comparator)
0020 {
0021     return -ENODEV;
0022 }
0023 #endif
0024 
0025 #endif /* __DRIVERS_OMAP_USB_H */