mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-15 01:17:39 +00:00
79c7a90f6c
This controller was introduced on Tegra114 to handle XUSB pads. On Tegra124 it is also used for PCIe and SATA pin muxing and PHY control. Only the Tegra124 PCIe and SATA functionality is currently implemented, with weak symbols on Tegra114. Tegra20 and Tegra30 also provide weak symbols for these functions so that drivers can use the same API irrespective of which SoC they're being built for. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
24 lines
830 B
C
24 lines
830 B
C
#ifndef _TEGRA_XUSB_PADCTL_H_
|
|
#define _TEGRA_XUSB_PADCTL_H_
|
|
|
|
struct tegra_xusb_phy;
|
|
|
|
/**
|
|
* tegra_xusb_phy_get() - obtain a reference to a specified padctl PHY
|
|
* @type: the type of PHY to obtain
|
|
*
|
|
* The type of PHY varies between SoC generations. Typically there are XUSB,
|
|
* PCIe and SATA PHYs, though not all generations support all of them. The
|
|
* value of type can usually be directly parsed from a device tree.
|
|
*
|
|
* Return: a pointer to the PHY or NULL if no such PHY exists
|
|
*/
|
|
struct tegra_xusb_phy *tegra_xusb_phy_get(unsigned int type);
|
|
|
|
void tegra_xusb_padctl_init(const void *fdt);
|
|
int tegra_xusb_phy_prepare(struct tegra_xusb_phy *phy);
|
|
int tegra_xusb_phy_enable(struct tegra_xusb_phy *phy);
|
|
int tegra_xusb_phy_disable(struct tegra_xusb_phy *phy);
|
|
int tegra_xusb_phy_unprepare(struct tegra_xusb_phy *phy);
|
|
|
|
#endif
|