aboutsummaryrefslogtreecommitdiff
path: root/lib_ppc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-11 20:09:52 -0500
committerWolfgang Denk <wd@denx.de>2009-03-20 22:39:12 +0100
commit9c150102bc1de375d36d97a1cc2dd0e9639b15df (patch)
tree83bd0206a829ce1efdcbf0542109913f467014f8 /lib_ppc
parent92b50ffef978f05858a0ff4cbe88430bc51a28a2 (diff)
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>
Diffstat (limited to 'lib_ppc')
-rw-r--r--lib_ppc/board.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index dc5be3bd0..10a4d37e2 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -943,12 +943,6 @@ void board_init_r (gd_t *id, ulong dest_addr)
}
#endif
-#if defined(CONFIG_TQM8xxL) || defined(CONFIG_TQM8260) || \
- defined(CONFIG_TQM8272) || \
- defined(CONFIG_CCM) || defined(CONFIG_KUP4K) || \
- defined(CONFIG_KUP4X) || defined(CONFIG_PCS440EP)
- load_sernum_ethaddr ();
-#endif
/* IP Address */
bd->bi_ip_addr = getenv_IPaddr ("ipaddr");