diff options
Diffstat (limited to 'cpu/mcf547x_8x/cpu.c')
| -rw-r--r-- | cpu/mcf547x_8x/cpu.c | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/cpu/mcf547x_8x/cpu.c b/cpu/mcf547x_8x/cpu.c index 1ba7aa80a..3912a74d5 100644 --- a/cpu/mcf547x_8x/cpu.c +++ b/cpu/mcf547x_8x/cpu.c @@ -28,6 +28,7 @@  #include <common.h>  #include <watchdog.h>  #include <command.h> +#include <netdev.h>  #include <asm/immap.h> @@ -95,10 +96,12 @@ int checkcpu(void)  	}  	if (id) { +		char buf1[32], buf2[32]; +  		printf("Freescale MCF%d\n", id); -		printf("       CPU CLK %d Mhz BUS CLK %d Mhz\n", -		       (int)(gd->cpu_clk / 1000000), -		       (int)(gd->bus_clk / 1000000)); +		printf("       CPU CLK %s MHz BUS CLK %s MHz\n", +		       strmhz(buf1, gd->cpu_clk), +		       strmhz(buf2, gd->bus_clk));  	}  	return 0; @@ -132,7 +135,7 @@ int watchdog_init(void)  	volatile gptmr_t *gptmr = (gptmr_t *) (MMAP_GPTMR);  	gptmr->pre = CONFIG_WATCHDOG_TIMEOUT; -	gptmr->cnt = CFG_TIMER_PRESCALER * 1000; +	gptmr->cnt = CONFIG_SYS_TIMER_PRESCALER * 1000;  	gptmr->mode = GPT_TMS_SGPIO;  	gptmr->ctrl = GPT_CTRL_CE | GPT_CTRL_WDEN; @@ -148,9 +151,6 @@ int watchdog_init(void)   * 	int board_eth_init(bd_t *bis)   */ -extern int mcdmafec_initialize(bd_t *bis); -extern int mcffec_initialize(bd_t*); -  int cpu_eth_init(bd_t *bis)  {  #if defined(CONFIG_FSLDMAFEC) |