public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse
Date: Tue, 26 Oct 2010 09:45:49 +0200	[thread overview]
Message-ID: <4CC6872D.3070302@denx.de> (raw)
In-Reply-To: <1287746745-16068-1-git-send-email-r64343@freescale.com>

On 10/22/2010 01:25 PM, Jason Liu wrote:
> The patch is to support getting FEC MAC address from fuse bank.
> 
> Signed-off-by: Jason Liu <r64343@freescale.com>

Hi Jason,

patch is related to a network driver, so Ben should be informed, too.

> +	/*
> +	 * The MX27 can store the mac address in internal eeprom
> +	 * This mechanism is also supported now by MX51 or MX25
> +	 */

If all supported processors implement the same way, we do not need to
distinguish. The comment does not add any further info.

>  	struct iim_regs *iim = (struct iim_regs *)IMX_IIM_BASE;
>  	int i;
>  
>  	for (i = 0; i < 6; i++)
> -		mac[6-1-i] = readl(&iim->iim_bank_area0[IIM0_MAC + i]);
> +		mac[6-1-i] = readl(&iim->iim_bank_area[IIM_MAC + i]);
>  
>  	return !is_valid_ether_addr(mac);
> -#endif

>  }
>  
>  static int fec_set_hwaddr(struct eth_device *dev)
> @@ -414,9 +410,6 @@ static int fec_init(struct eth_device *dev, bd_t* bd)
>  	uint32_t base;
>  	struct fec_priv *fec = (struct fec_priv *)dev->priv;
>  
> -	/* Initialize MAC address */
> -	fec_set_hwaddr(dev);
> -

Not sure. Why is this call removed ? We have changed the storage for the
MAC address, but we need always to set the FEC controller. What is the
reason to drop 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
=====================================================================

  parent reply	other threads:[~2010-10-26  7:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-22 11:25 [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse Jason Liu
2010-10-22 11:25 ` [U-Boot] [PATCH 2/2] MX5: board version not printed corretly on MX51EVK Jason Liu
2010-10-26  7:53   ` Stefano Babic
2010-10-26 10:29     ` Jason Liu
2010-10-27  7:22       ` Stefano Babic
2010-10-26  7:45 ` Stefano Babic [this message]
2010-10-26 10:35   ` [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse Jason Liu
2010-10-27  7:21     ` Stefano Babic
2010-10-27  7:40       ` Jason Liu
2010-10-27  8:49         ` Stefano Babic
2010-10-27  9:21           ` Jason Liu
2010-10-27 17:50             ` John Rigby
2010-10-27 18:06               ` Wolfgang Denk
2010-10-27 18:59                 ` John Rigby
  -- strict thread matches above, loose matches on Subject: below --
2010-10-25 13:07 Shawn Guo

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=4CC6872D.3070302@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