]> git.sur5r.net Git - u-boot/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>
Thu, 21 Jan 2010 19:35:17 +0000 (13:35 -0600)
commit14a35a6fb2e1c284fbacfe40f6c94fdaa9a1c989
tree86a9db755ba1cfeb3bab71f50011d43e4506dc04
parentf68d0678c878b33fe690e8bcfc9f88b67d870e39
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