From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Wed, 13 Nov 2013 10:04:54 +0100 Subject: [U-Boot] [PATCH v1 2/4] udoo: Add ethernet support (FEC + Micrel KSZ9031). In-Reply-To: <1384189918-7755-2-git-send-email-giuseppe.pagano@seco.com> References: <1384189918-7755-1-git-send-email-giuseppe.pagano@seco.com> <1384189918-7755-2-git-send-email-giuseppe.pagano@seco.com> Message-ID: <528340B6.9090500@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Giuseppe, On 11/11/2013 18:11, Giuseppe Pagano wrote: > Add Ethernet and networking support on uDoo board (FEC + phy Micrel KSZ9031). > > Signed-off-by: Giuseppe Pagano > CC: Stefano Babic > CC: Fabio Estevam > --- ok - remember to increment the version number of the patchset for next time (this is really V2 instead of V1). > board/udoo/udoo.c | 140 ++++++++++++++++++++++++++++++++++++++++++++++++ > include/configs/udoo.h | 16 ++++++ > include/micrel.h | 5 ++ > 3 files changed, 161 insertions(+) > > diff --git a/board/udoo/udoo.c b/board/udoo/udoo.c > index e9d6375..ca49ebb 100644 > --- a/board/udoo/udoo.c > +++ b/board/udoo/udoo.c > @@ -9,6 +9,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -18,6 +19,9 @@ > #include > #include > #include > +#include > +#include > +#include > > DECLARE_GLOBAL_DATA_PTR; > > @@ -25,6 +29,9 @@ DECLARE_GLOBAL_DATA_PTR; > PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | \ > PAD_CTL_SRE_FAST | PAD_CTL_HYS) > > +#define ENET_PAD_CTRL (PAD_CTL_PUS_100K_UP | \ > + PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | PAD_CTL_HYS) > + > #define USDHC_PAD_CTRL (PAD_CTL_PUS_47K_UP | \ > PAD_CTL_SPEED_LOW | PAD_CTL_DSE_80ohm | \ > PAD_CTL_SRE_FAST | PAD_CTL_HYS) > @@ -58,6 +65,99 @@ static iomux_v3_cfg_t const wdog_pads[] = { > MX6_PAD_EIM_D19__GPIO_3_19, > }; > > +int mx6_rgmii_rework(struct phy_device *phydev) > +{ > + /* > + * Bug: Apparently uDoo does not works with Gigabit switches... > + * Limiting speed to 10/100Mbps, and setting master mode, seems to > + * be the only way to have a successfull PHY auto negotiation. > + * How to fix: Understand why Linux kernel do not have this issue. > + */ Fine. This is ok, but could you also add to the commit message that Ethernet is currently limited to 10/100Mbps ? Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================