]> git.dujemihanovic.xyz Git - u-boot.git/commit
SPEAr : Support for HW mac id read/write from i2c mem
authorVipin KUMAR <vipin.kumar@st.com>
Fri, 15 Jan 2010 13:45:49 +0000 (19:15 +0530)
committerTom Rix <Tom.Rix@windriver.com>
Sat, 23 Jan 2010 14:15:49 +0000 (08:15 -0600)
commitf92994f0f7403b84366ce04e554e461f624e6868
tree7c5da7e375042f3bad37acff3216bd0b445a2e48
parent566c9c16fe4e501c3193ae6605bc9c663c6ea706
SPEAr : Support for HW mac id read/write from i2c mem

This patch adds the  support to read and write mac id from i2c
memory.
For reading:
if (env contains ethaddr)
pick env ethaddr
else
pick ethaddr from i2c memory
For writing:
chip_config ethaddr XX:XX:XX:XX:XX:XX writes the mac id
in i2c memory

Signed-off-by: Vipin <vipin.kumar@st.com>
board/spear/common/spr_misc.c
include/asm-arm/arch-spear/spr_defs.h