da850evm: add support to read mac address from SPI flash
authorHadli, Manjunath <manjunath.hadli@ti.com>
Thu, 9 Feb 2012 20:22:24 +0000 (20:22 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 27 Feb 2012 20:19:24 +0000 (21:19 +0100)
commit38fed6ee95ee5b0dba9f91380267ed998cee2f62
tree12b2c0e738ff3e8b46781cd17fd0c20ae435be91
parent4258aa62fbf4e001314624d09bcc94b3027c5670
da850evm: add support to read mac address from SPI flash

add support to read mac address for da850/L138 evm manufactured by
Logic PD which store mac address in SPI flash manufactured by ST
Microelectronics. This patch adds support to read mac address from
SPI flash and set the mac address if it hasn't been set in environment,
If it has been set in the environment it compares the value one with
SPI flash and warns on mismatch. Introduced a config option
CONFIG_MAC_ADDR_IN_SPIFLASH indicating where to look mac address for.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Cc: Tom Rini <trini@ti.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Wolfgang Denk <wd@denx.de>
board/davinci/da8xxevm/da850evm.c
boards.cfg