Hi Max,

On 8 July 2016 at 09:42, Max Filippov <jcmvb...@gmail.com> wrote:
> Introduce MDIO communication routines. Scan MDIO bus at reset to find
> attached PHYs and see if they support gigabit speeds. If they do check
> their gigabit control register: if gigabit autonegotiation is enabled
> clear it and reset the PHY.
>
> This allows using OpenCores 10/100 MAC with gigabit PHY connected to
> gigabit network.
>
> Signed-off-by: Max Filippov <jcmvb...@gmail.com>
> ---
>  drivers/net/ethoc.c | 76 
> +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 76 insertions(+)
>
> diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c
> index ee7c01e..8f70c0c 100644
> --- a/drivers/net/ethoc.c
> +++ b/drivers/net/ethoc.c
> @@ -290,6 +290,80 @@ static int ethoc_init_ring(struct eth_device *dev)
>         return 0;
>  }
>
> +#ifdef CONFIG_SYS_ETHOC_SETUP_PHY

This should be in Kconfig.

Regards,
Simon
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to