]> Git Repo - J-linux.git/blob - include/linux/usb/phy_companion.h
Merge tag 'amd-drm-next-6.5-2023-06-09' of https://gitlab.freedesktop.org/agd5f/linux...
[J-linux.git] / include / linux / usb / phy_companion.h
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * phy-companion.h -- phy companion to indicate the comparator part of PHY
4  *
5  * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com
6  *
7  * Author: Kishon Vijay Abraham I <[email protected]>
8  */
9
10 #ifndef __DRIVERS_PHY_COMPANION_H
11 #define __DRIVERS_PHY_COMPANION_H
12
13 #include <linux/usb/otg.h>
14
15 /* phy_companion to take care of VBUS, ID and srp capabilities */
16 struct phy_companion {
17
18         /* effective for A-peripheral, ignored for B devices */
19         int     (*set_vbus)(struct phy_companion *x, bool enabled);
20
21         /* for B devices only:  start session with A-Host */
22         int     (*start_srp)(struct phy_companion *x);
23 };
24
25 #endif /* __DRIVERS_PHY_COMPANION_H */
This page took 0.030057 seconds and 4 git commands to generate.