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

Stefano Babic sbabic at denx.de
Sun Nov 21 18:29:54 CET 2010


On 11/19/2010 10:45 AM, Jason Liu wrote:
> The patch is to support getting FEC MAC address from fuse bank.
> 
> Signed-off-by: Jason Liu <r64343 at freescale.com>
> 
> ---
> Changes for v2:
>  - correct the mac address byte order according to review comments
>  - add memset(edev, 0. sizeof(*edev)) when do fec_probe,
>  - fix some code comments
> Changes for v3:
>  - rebase
>  - address the comments of Stefano, make the imx_get_mac_from_fuse(),
>    declared independently inside each imx-regs.h to make it specific
>    for each processor, because it accesses to different structures.
>  - address the comments of Wolfgang and Stefano, use struct to access
>    mac_addr fuse.
> Changes for v4:
>  - Address the comments of Wolfgang, use fuse_regs instead of bank addres
>    and change from fuse1_6 to fuse0_5 naming convention and use fuse_bank0_regs
>    instead of fuse_bank0 to kill misleading.
> Changes for v5:
>  - Fix the typo error of fuse5_31[0x11] as Wolfgang point out
>  - Change the print message "got MAC address from EEPROM to
>    "got MAC address from fuse" which comply with this commit title.
> Changes for v6:
>  - Fix the mx27 res0 array size issue
>  - Fix one coding style issue
>  - use 0xff mask to clear that only the LSB of the read value is taken
> Changes for v7:
>  - Fix the mx27 mac_addr offset
>  - checkpatch
> ---
>  arch/arm/cpu/arm926ejs/mx25/generic.c     |   12 ++++++++++
>  arch/arm/cpu/arm926ejs/mx27/generic.c     |   12 ++++++++++
>  arch/arm/cpu/armv7/mx5/soc.c              |   14 ++++++++++++
>  arch/arm/include/asm/arch-mx25/imx-regs.h |   19 +++++++++------
>  arch/arm/include/asm/arch-mx27/imx-regs.h |   20 +++++++++++------
>  arch/arm/include/asm/arch-mx5/imx-regs.h  |   34 +++++++++++++++++++++++++++++
>  drivers/net/fec_mxc.c                     |   17 +------------
>  7 files changed, 98 insertions(+), 30 deletions(-)

Applied to u-boot-imx, thanks.

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
=====================================================================


More information about the U-Boot mailing list