From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 2/4] udoo: Add ethernet support (FEC + Micrel KSZ9031).
Date: Wed, 13 Nov 2013 10:04:54 +0100 [thread overview]
Message-ID: <528340B6.9090500@denx.de> (raw)
In-Reply-To: <1384189918-7755-2-git-send-email-giuseppe.pagano@seco.com>
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 <giuseppe.pagano@seco.com>
> CC: Stefano Babic <sbabic@denx.de>
> CC: Fabio Estevam <fabio.estevam@freescale.com>
> ---
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 <asm/arch/clock.h>
> #include <asm/arch/imx-regs.h>
> #include <asm/arch/iomux.h>
> +#include <malloc.h>
> #include <asm/arch/mx6-pins.h>
> #include <asm/errno.h>
> #include <asm/gpio.h>
> @@ -18,6 +19,9 @@
> #include <asm/arch/crm_regs.h>
> #include <asm/io.h>
> #include <asm/arch/sys_proto.h>
> +#include <micrel.h>
> +#include <miiphy.h>
> +#include <netdev.h>
>
> 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
=====================================================================
next prev parent reply other threads:[~2013-11-13 9:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-11 17:11 [U-Boot] [PATCH v1 1/4] udoo: Move and optimize platform register setting Giuseppe Pagano
2013-11-11 17:11 ` [U-Boot] [PATCH v1 2/4] udoo: Add ethernet support (FEC + Micrel KSZ9031) Giuseppe Pagano
2013-11-12 14:17 ` Fabio Estevam
2013-11-12 14:51 ` Fabio Estevam
2013-11-12 15:00 ` Fabio Estevam
2013-11-12 15:09 ` Giuseppe Pagano
2013-11-13 9:04 ` Stefano Babic [this message]
2013-11-15 11:48 ` Giuseppe Pagano
2013-11-11 17:11 ` [U-Boot] [PATCH v1 3/4] udoo: Add SATA support on uDoo Board Giuseppe Pagano
2013-11-11 18:00 ` Otavio Salvador
2013-11-12 9:51 ` Giuseppe Pagano
2013-11-11 17:11 ` [U-Boot] [PATCH,v1,4/4] udoo: Fix watchdog during kernel boot Giuseppe Pagano
2013-11-12 14:18 ` Fabio Estevam
2013-11-12 14:16 ` [U-Boot] [PATCH v1 1/4] udoo: Move and optimize platform register setting Fabio Estevam
2013-11-13 9:01 ` Stefano Babic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=528340B6.9090500@denx.de \
--to=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox