diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2009-11-24 20:04:21 +1100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-12-05 01:05:39 +0100 |
commit | 1c409bc7101a24ecd47a13a4e851845d66dc23ce (patch) | |
tree | 0ecc055ef81130abc919cc2123974304dfa75b9e /board/eNET/eNET.c | |
parent | cabe5794803fbe18bedac2d9c7f2417a0fa95ec1 (diff) | |
download | u-boot-imx-1c409bc7101a24ecd47a13a4e851845d66dc23ce.zip u-boot-imx-1c409bc7101a24ecd47a13a4e851845d66dc23ce.tar.gz u-boot-imx-1c409bc7101a24ecd47a13a4e851845d66dc23ce.tar.bz2 |
i386: Final Relocation
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Diffstat (limited to 'board/eNET/eNET.c')
-rw-r--r-- | board/eNET/eNET.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/board/eNET/eNET.c b/board/eNET/eNET.c index 29cf295..6d0b15a 100644 --- a/board/eNET/eNET.c +++ b/board/eNET/eNET.c @@ -47,7 +47,6 @@ void init_sc520_enet (void) { /* Set CPU Speed to 100MHz */ sc520_mmcr->cpuctl = 0x01; - gd->cpu_clk = 100000000; /* wait at least one millisecond */ asm("movl $0x2000,%%ecx\n" @@ -67,7 +66,7 @@ void init_sc520_enet (void) /* * Miscellaneous platform dependent initializations */ -int board_init(void) +int board_early_init_f(void) { init_sc520_enet(); @@ -117,6 +116,14 @@ int board_init(void) sc520_mmcr->sysarbctl = 0x06; sc520_mmcr->sysarbmenb = 0x0003; + return 0; +} + +int board_early_init_r(void) +{ + /* CPU Speed to 100MHz */ + gd->cpu_clk = 100000000; + /* Crystal is 33.000MHz */ gd->bus_clk = 33000000; |