xusb-padctl.h 819 B

123456789101112131415161718192021222324
  1. #ifndef _TEGRA_XUSB_PADCTL_H_
  2. #define _TEGRA_XUSB_PADCTL_H_
  3. struct tegra_xusb_phy;
  4. /**
  5. * tegra_xusb_phy_get() - obtain a reference to a specified padctl PHY
  6. * @type: the type of PHY to obtain
  7. *
  8. * The type of PHY varies between SoC generations. Typically there are XUSB,
  9. * PCIe and SATA PHYs, though not all generations support all of them. The
  10. * value of type can usually be directly parsed from a device tree.
  11. *
  12. * Return: a pointer to the PHY or NULL if no such PHY exists
  13. */
  14. struct tegra_xusb_phy *tegra_xusb_phy_get(unsigned int type);
  15. void tegra_xusb_padctl_init(void);
  16. int tegra_xusb_phy_prepare(struct tegra_xusb_phy *phy);
  17. int tegra_xusb_phy_enable(struct tegra_xusb_phy *phy);
  18. int tegra_xusb_phy_disable(struct tegra_xusb_phy *phy);
  19. int tegra_xusb_phy_unprepare(struct tegra_xusb_phy *phy);
  20. #endif