boards: get mac address from env and move load_sernum_ethaddr() to board init
authorMike Frysinger <vapier@gentoo.org>
Thu, 12 Feb 2009 01:09:52 +0000 (20:09 -0500)
committerWolfgang Denk <wd@denx.de>
Fri, 20 Mar 2009 21:39:12 +0000 (22:39 +0100)
commit9c150102bc1de375d36d97a1cc2dd0e9639b15df
tree83bd0206a829ce1efdcbf0542109913f467014f8
parent92b50ffef978f05858a0ff4cbe88430bc51a28a2
boards: get mac address from env and move load_sernum_ethaddr() to board init

The environment is the canonical storage location of the mac address, so
we're killing off the global data location and moving everything to
querying the env directly.

Rather than have common ppc code call a board-specific function like
load_sernum_ethaddr(), have each board call it in its own board-specific
misc_init_r() function.

The boards that get converted here are:
- kup4k/kup4x
- pcs440ep
- tqm8xx

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
CC: Ben Warren <biggerbadderben@gmail.com>
CC: Stefan Roese <sr@denx.de>
board/kup/common/kup.h
board/kup/kup4k/kup4k.c
board/kup/kup4x/kup4x.c
board/m501sk/m501sk.c
board/pcs440ep/pcs440ep.c
board/tqc/tqm8xx/tqm8xx.c
include/common.h
lib_ppc/board.c