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

Max Filippov jcmvbkbc at gmail.com
Fri Jul 15 01:41:02 CEST 2016


Hi Simon,

On Tue, Jul 12, 2016 at 03:56:57PM -0600, Simon Glass wrote:
> 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.

Ok, will add.

-- 
Thanks.
-- Max


More information about the U-Boot mailing list