From mboxrd@z Thu Jan 1 00:00:00 1970 From: Max Filippov Date: Fri, 15 Jul 2016 02:41:02 +0300 Subject: [U-Boot] [PATCH 7/8] net/ethoc: don't advertise gigabit on the connected PHY In-Reply-To: References: <1467992526-13417-1-git-send-email-jcmvbkbc@gmail.com> <1467992526-13417-8-git-send-email-jcmvbkbc@gmail.com> Message-ID: <20160714234102.GA31966@octofox.metropolis> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On Tue, Jul 12, 2016 at 03:56:57PM -0600, Simon Glass wrote: > On 8 July 2016 at 09:42, Max Filippov 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 > > --- > > 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