Re: [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse

2010-10-27 Thread Stefano Babic
On 10/26/2010 12:35 PM, Jason Liu wrote: 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 */ -

Re: [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse

2010-10-27 Thread Jason Liu
2010/10/27 Stefano Babic sba...@denx.de: On 10/26/2010 12:35 PM, Jason Liu wrote:  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; -    

Re: [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse

2010-10-27 Thread Stefano Babic
On 10/27/2010 09:40 AM, Jason Liu wrote: Yes, I haved looked it before and I also tested this patch on MX51babbage 3.0 board. It will printting some confusing information with floating value of MAC address when the board boot up after you set the ethaddr enviorment. The reason is that, when

Re: [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse

2010-10-27 Thread Jason Liu
Hi, Stefano, 2010/10/27 Stefano Babic sba...@denx.de: On 10/27/2010 09:40 AM, Jason Liu wrote: Yes, I haved looked it before and I also tested this patch on MX51babbage 3.0 board. It will printting some confusing information with floating value of MAC address when the board boot up after you

Re: [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse

2010-10-27 Thread John Rigby
On Wed, Oct 27, 2010 at 5:21 AM, Jason Liu liu.h.ja...@gmail.com wrote: Hi, Stefano, 2010/10/27 Stefano Babic sba...@denx.de: On 10/27/2010 09:40 AM, Jason Liu wrote: Yes, I haved looked it before and I also tested this patch on MX51babbage 3.0 board. It will printting some confusing

Re: [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse

2010-10-27 Thread Wolfgang Denk
Dear John, In message aanlktikmzvasvw1wtwg7od9qyeaphhwdbc+3ox5ak...@mail.gmail.com you wrote: The patch fixes the particular case where you have no ethaddr in fuse, nor persistent env. The case is a board where the only persistent storage is an SD card and you set load a boot script from

Re: [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse

2010-10-27 Thread John Rigby
On Wed, Oct 27, 2010 at 2:06 PM, Wolfgang Denk w...@denx.de wrote: Dear John, In message aanlktikmzvasvw1wtwg7od9qyeaphhwdbc+3ox5ak...@mail.gmail.com you wrote: The patch fixes the particular case where you have no ethaddr in fuse, nor persistent env.  The case is a board where the only

Re: [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse

2010-10-26 Thread Stefano Babic
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 r64...@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

Re: [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse

2010-10-25 Thread Shawn Guo
I was not in the mail list when Jason posted the patch, so I emulated the reply message. diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 3f09c2b..e8d7b98 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -312,21 +312,17 @@ static void fec_rbd_clean(int last,

[U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse

2010-10-22 Thread Jason Liu
The patch is to support getting FEC MAC address from fuse bank. Signed-off-by: Jason Liu r64...@freescale.com --- arch/arm/include/asm/arch-mx25/imx-regs.h | 10 +++--- arch/arm/include/asm/arch-mx27/imx-regs.h |5 ++--- arch/arm/include/asm/arch-mx5/imx-regs.h | 24