SPEAr: Place ethaddr write and read within CONFIG_CMD_NET
authorVipin KUMAR <vipin.kumar@st.com>
Mon, 7 May 2012 07:36:41 +0000 (13:06 +0530)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:40 +0000 (14:07 +0200)
commit8026b1e42f533f14115bb629efeaaedec6eaf23b
treeb2e11daec61a70f7223cd50cb951439ef4a02876
parent70fdbefc6c50010cc56196b65a233369d2b2ce68
SPEAr: Place ethaddr write and read within CONFIG_CMD_NET

ethaddr can be optionally read from i2c memory. So, chip_config command supports
reading/writing hw mac id into i2c memory. Placing this code within
CONFIG_CMD_NET as this would only be needed when network interface is configured

Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
Signed-off-by: Stefan Roese <sr@denx.de>
board/spear/common/spr_misc.c
doc/README.spear