diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-02-11 20:09:52 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-03-20 22:39:12 +0100 |
commit | 9c150102bc1de375d36d97a1cc2dd0e9639b15df (patch) | |
tree | 83bd0206a829ce1efdcbf0542109913f467014f8 /board/kup/kup4x | |
parent | 92b50ffef978f05858a0ff4cbe88430bc51a28a2 (diff) | |
download | u-boot-imx-9c150102bc1de375d36d97a1cc2dd0e9639b15df.zip u-boot-imx-9c150102bc1de375d36d97a1cc2dd0e9639b15df.tar.gz u-boot-imx-9c150102bc1de375d36d97a1cc2dd0e9639b15df.tar.bz2 |
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 'board/kup/kup4x')
-rw-r--r-- | board/kup/kup4x/kup4x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/kup/kup4x/kup4x.c b/board/kup/kup4x/kup4x.c index c5b742d..65a222b 100644 --- a/board/kup/kup4x/kup4x.c +++ b/board/kup/kup4x/kup4x.c @@ -295,7 +295,6 @@ static long int dram_size (long int mamr_value, long int *base, int misc_init_r (void) { volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR; - #ifdef CONFIG_IDE_LED /* Configure PA8 as output port */ immap->im_ioport.iop_padir |= 0x80; @@ -306,6 +305,7 @@ int misc_init_r (void) #ifdef KUP4X_USB usb_init_kup4x (); #endif + load_sernum_ethaddr(); setenv ("hw", "4x"); poweron_key (); return (0); |