[Abel, please trim the CC list next time. I tried to keep it shorter
so that U-Boot list does not complain about the large number of
recipients]

On Wed, Jan 16, 2019 at 12:14 PM Abel Vesa <abel.v...@nxp.com> wrote:
>
> Add the DM_GPIO related config for mx6sabresd.
> Also add the gpio request calls.
>
> Signed-off-by: Abel Vesa <abel.v...@nxp.com>
> ---
>  board/freescale/mx6sabresd/mx6sabresd.c | 5 +++++
>  configs/mx6sabresd_defconfig            | 1 +
>  2 files changed, 6 insertions(+)
>
> diff --git a/board/freescale/mx6sabresd/mx6sabresd.c 
> b/board/freescale/mx6sabresd/mx6sabresd.c
> index 0183ede..e3db2fd 100644
> --- a/board/freescale/mx6sabresd/mx6sabresd.c
> +++ b/board/freescale/mx6sabresd/mx6sabresd.c
> @@ -96,6 +96,7 @@ static void setup_iomux_enet(void)
>         SETUP_IOMUX_PADS(enet_pads);
>
>         /* Reset AR8031 PHY */
> +       gpio_request(IMX_GPIO_NR(1, 25), "ENET PHY Reset");
>         gpio_direction_output(IMX_GPIO_NR(1, 25) , 0);
>         mdelay(10);
>         gpio_set_value(IMX_GPIO_NR(1, 25), 1);

What about using the 'phy-reset-gpios' property instead of having this
board C code?
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to