diff options
author | Tom Rini <trini@konsulko.com> | 2021-02-16 15:14:34 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-02-16 15:14:34 -0500 |
commit | 496f49464d90b564da5f1a2f4eecb5553e01edf9 (patch) | |
tree | e084452c2b7e9f2d0ede789aa840e9e3ae2338ed /include/phy.h | |
parent | 767582cd4c755c52bce3e1813bc462f37047cb5c (diff) | |
parent | d003434525767145d152b54573ef8e030b63a6fe (diff) |
Merge branch '2021-02-16-assorted-improvements'
- DSA switch support (Layerscape platforms)
- IOMUX cleanup / fixes
- i2c OP-TEE trampoline driver
Diffstat (limited to 'include/phy.h')
-rw-r--r-- | include/phy.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/phy.h b/include/phy.h index 7750efd8bb5..2754421ed4f 100644 --- a/include/phy.h +++ b/include/phy.h @@ -402,6 +402,27 @@ int phy_reset(struct phy_device *phydev); struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask, phy_interface_t interface); +#ifdef CONFIG_PHY_FIXED + +/** + * fixed_phy_create() - create an unconnected fixed-link pseudo-PHY device + * @node: OF node for the container of the fixed-link node + * + * Description: Creates a struct phy_device based on a fixed-link of_node + * description. Can be used without phy_connect by drivers which do not expose + * a UCLASS_ETH udevice. + */ +struct phy_device *fixed_phy_create(ofnode node); + +#else + +static inline struct phy_device *fixed_phy_create(ofnode node) +{ + return NULL; +} + +#endif + #ifdef CONFIG_DM_ETH /** |