at master 693 B view raw
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 <kishon@ti.com> 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 */ 16struct 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 */