From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 1/5] net: fec_mxc: add 1000 Mbps selection
Date: Mon, 06 Feb 2012 11:47:34 +0100 [thread overview]
Message-ID: <4F2FAFC6.3040101@denx.de> (raw)
In-Reply-To: <1328228569-5794-1-git-send-email-troy.kisky@boundarydevices.com>
On 03/02/2012 01:22, Troy Kisky wrote:
> Define CONFIG_FEC_QUIRK_ENET_MAC and add to
> board files mx6qarm2 and mx6qsabrelite.
>
> Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
> Acked-by: Dirk Behme <dirk.behme@de.bosch.com>
> ---
> drivers/net/fec_mxc.c | 21 +++++++++++++++++++--
> drivers/net/fec_mxc.h | 2 ++
> include/configs/mx6qarm2.h | 1 +
> include/configs/mx6qsabrelite.h | 1 +
> 4 files changed, 23 insertions(+), 2 deletions(-)
>
> This patch series is against Stefano's u-boot-imx
> Patches 2/3 and 5 have changes from version 3
Hi Troy,
> diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
> index ed73353..7c42b87 100644
> --- a/drivers/net/fec_mxc.c
> +++ b/drivers/net/fec_mxc.c
> @@ -379,13 +379,14 @@ static int fec_set_hwaddr(struct eth_device *dev)
> static int fec_open(struct eth_device *edev)
> {
> struct fec_priv *fec = (struct fec_priv *)edev->priv;
> + int speed;
>
> debug("fec_open: fec_open(dev)\n");
> /* full-duplex, heartbeat disabled */
> writel(1 << 2, &fec->eth->x_cntrl);
> fec->rbd_index = 0;
>
> -#if defined(CONFIG_MX6Q)
> +#ifdef CONFIG_FEC_QUIRK_ENET_MAC
> /* Enable ENET HW endian SWAP */
> writel(readl(&fec->eth->ecntrl) | FEC_ECNTRL_DBSWAP,
> &fec->eth->ecntrl);
> @@ -428,9 +429,25 @@ static int fec_open(struct eth_device *edev)
> #endif
>
> miiphy_wait_aneg(edev);
> - miiphy_speed(edev->name, fec->phy_id);
> + speed = miiphy_speed(edev->name, fec->phy_id);
> miiphy_duplex(edev->name, fec->phy_id);
>
> +#ifdef CONFIG_FEC_QUIRK_ENET_MAC
> + {
It seems to me that QUIRK_ENET_MAC depends on the SOC, and not on the
boards. All imx6 boards must set it. If this is right, what about to put
this setup (as FEC_QUIRK_ENET_MAC) inside the imx-regs.h file ? All imx6
boards will automatically use it.
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-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2012-02-06 10:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-03 0:22 [U-Boot] [PATCH v4 1/5] net: fec_mxc: add 1000 Mbps selection Troy Kisky
2012-02-03 0:22 ` [U-Boot] [PATCH v4 2/5] net: fec_mxc: add PHYLIB support Troy Kisky
2012-02-03 0:22 ` [U-Boot] [PATCH v4 3/5] net: phy: add support for Micrel's KSZ9021 Troy Kisky
2012-02-03 0:22 ` [U-Boot] [PATCH v4 4/5] net: phy: make board_phy_config responsible for calling drv->config Troy Kisky
2012-02-03 0:22 ` [U-Boot] [PATCH v4 5/5] i.mx6q: mx6qsabrelite: Update the network configuration Troy Kisky
2012-02-05 6:32 ` [U-Boot] [PATCH v4 1/5] net: fec_mxc: add 1000 Mbps selection Dirk Behme
2012-02-06 10:47 ` Stefano Babic [this message]
2012-02-07 1:29 ` Troy Kisky
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=4F2FAFC6.3040101@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