[U-Boot] [PATCH 7/8] net/ethoc: don't advertise gigabit on the connected PHY

Simon Glass sjg at chromium.org
Tue Jul 12 23:56:57 CEST 2016


Hi Max,

On 8 July 2016 at 09:42, Max Filippov <jcmvbkbc at 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 <jcmvbkbc at 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


More information about the U-Boot mailing list