diff options
author | Tom Rini <trini@konsulko.com> | 2022-10-10 15:38:14 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-10-10 15:38:14 -0400 |
commit | c4c32e359662aa95d9dbda2bd1272181bd9cb830 (patch) | |
tree | 69f549936a023bd2b1fada4343789ba779579570 /include/generic-phy.h | |
parent | 2877e9ddca83180ec1e3567f6bab3ffc380e0b60 (diff) | |
parent | 5f7e01e9d5d8005e9a8fbbdf8a05dfd63a5e5f04 (diff) |
Merge https://source.denx.de/u-boot/custodians/u-boot-usb
Diffstat (limited to 'include/generic-phy.h')
-rw-r--r-- | include/generic-phy.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/generic-phy.h b/include/generic-phy.h index d40ce589b6..f8eddeff67 100644 --- a/include/generic-phy.h +++ b/include/generic-phy.h @@ -342,6 +342,26 @@ int generic_phy_power_on_bulk(struct phy_bulk *bulk); */ int generic_phy_power_off_bulk(struct phy_bulk *bulk); +/** + * generic_setup_phy() - Get, initialize and power on phy. + * + * @dev: The consumer device. + * @phy: A pointer to the PHY port + * @index: The index in the list of available PHYs + * + * Return: 0 if OK, or negative error code. + */ +int generic_setup_phy(struct udevice *dev, struct phy *phy, int index); + +/** + * generic_shutdown_phy() - Power off and de-initialize phy. + * + * @phy: A pointer to the PHY port. + * + * Return: 0 if OK, or negative error code. + */ +int generic_shutdown_phy(struct phy *phy); + #else /* CONFIG_PHY */ static inline int generic_phy_init(struct phy *phy) @@ -407,6 +427,16 @@ static inline int generic_phy_power_off_bulk(struct phy_bulk *bulk) return 0; } +static inline int generic_setup_phy(struct udevice *dev, struct phy *phy, int index) +{ + return 0; +} + +static inline int generic_shutdown_phy(struct phy *phy) +{ + return 0; +} + #endif /* CONFIG_PHY */ /** |