1 // SPDX-License-Identifier: GPL-2.0+
3 * phy-companion.h -- phy companion to indicate the comparator part of PHY
5 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com
7 * Author: Kishon Vijay Abraham I <kishon@ti.com>
10 #ifndef __DRIVERS_PHY_COMPANION_H
11 #define __DRIVERS_PHY_COMPANION_H
13 #include <linux/usb/otg.h>
15 /* phy_companion to take care of VBUS, ID and srp capabilities */
16 struct phy_companion
{
18 /* effective for A-peripheral, ignored for B devices */
19 int (*set_vbus
)(struct phy_companion
*x
, bool enabled
);
21 /* for B devices only: start session with A-Host */
22 int (*start_srp
)(struct phy_companion
*x
);
25 #endif /* __DRIVERS_PHY_COMPANION_H */