From ad8c43cbcafbbb21efc9e26bda7a6b1e37428adc Mon Sep 17 00:00:00 2001 From: Martin Fuzzey Date: Thu, 4 Oct 2018 19:59:20 +0200 Subject: 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 Acked-by: Joe Hershberger --- drivers/net/fec_mxc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/net/fec_mxc.h') diff --git a/drivers/net/fec_mxc.h b/drivers/net/fec_mxc.h index fd894432054..848cd7c2277 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; -- cgit v1.2.3