diff options
author | Martin Fuzzey <martin.fuzzey@flowbird.group> | 2018-10-04 19:59:20 +0200 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2018-10-24 14:45:37 -0500 |
commit | ad8c43cbcafbbb21efc9e26bda7a6b1e37428adc (patch) | |
tree | d3d3d6da70cc2ea89b7d75b7b2738ff4a5e0e7b0 /drivers/net/fec_mxc.h | |
parent | 331fcabe4f9b4c7ec58d070da039f875673c9c9d (diff) |
net: dm: fec: Support the phy-supply binding
Configure the phy regulator if defined by the "phy-supply" DT phandle.
Signed-off-by: Martin Fuzzey <martin.fuzzey@flowbird.group>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/fec_mxc.h')
-rw-r--r-- | drivers/net/fec_mxc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/fec_mxc.h b/drivers/net/fec_mxc.h index fd89443205..848cd7c227 100644 --- a/drivers/net/fec_mxc.h +++ b/drivers/net/fec_mxc.h @@ -250,6 +250,9 @@ struct fec_priv { int phy_id; int (*mii_postcall)(int); #endif +#ifdef CONFIG_DM_REGULATOR + struct udevice *phy_supply; +#endif #ifdef CONFIG_DM_GPIO struct gpio_desc phy_reset_gpio; uint32_t reset_delay; |