phy_companion.h 693 B

12345678910111213141516171819202122232425
  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. #ifndef __DRIVERS_PHY_COMPANION_H
  10. #define __DRIVERS_PHY_COMPANION_H
  11. #include <linux/usb/otg.h>
  12. /* phy_companion to take care of VBUS, ID and srp capabilities */
  13. struct phy_companion {
  14. /* effective for A-peripheral, ignored for B devices */
  15. int (*set_vbus)(struct phy_companion *x, bool enabled);
  16. /* for B devices only: start session with A-Host */
  17. int (*start_srp)(struct phy_companion *x);
  18. };
  19. #endif /* __DRIVERS_PHY_COMPANION_H */