[U-Boot] [PATCH] ARM: imx6q_logic: Correct phy fixup for broken ethernet

Jagan Teki jagan at amarulasolutions.com
Wed Apr 3 04:58:14 UTC 2019


Hi Adam,

On Sun, Jan 13, 2019 at 5:02 AM Adam Ford <aford173 at gmail.com> wrote:
>
> The Ethernet has been broken for some time.  This patch unifies
> this board with a few others that use a similar approach to
> enabling phy.  This fixes ar8031 Ethernet controller so it works.
>
> Signed-off-by: Adam Ford <aford173 at gmail.com>
>
> diff --git a/board/logicpd/imx6/imx6logic.c b/board/logicpd/imx6/imx6logic.c
> index cda76a8084..eb4849117d 100644
> --- a/board/logicpd/imx6/imx6logic.c
> +++ b/board/logicpd/imx6/imx6logic.c
> @@ -60,57 +60,6 @@ static iomux_v3_cfg_t const uart3_pads[] = {
>         MX6_PAD_EIM_EB3__UART3_RTS_B | MUX_PAD_CTRL(UART_PAD_CTRL),
>  };
>
> -#ifndef CONFIG_SPL_BUILD
> -static void fixup_enet_clock(void)
> -{
> -       struct iomuxc *iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR;
> -       struct gpio_desc nint;
> -       struct gpio_desc reset;
> -       int ret;
> -
> -       /* Set Ref Clock to 50 MHz */
> -       enable_fec_anatop_clock(0, ENET_50MHZ);

I just wonder why the fec working w/o ene_ref set rate to 50MHz, any idea?


More information about the U-Boot mailing list