diff options
| author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-12-17 16:53:07 +0100 | 
|---|---|---|
| committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-12-17 16:53:07 +0100 | 
| commit | cb5473205206c7f14cbb1e747f28ec75b48826e2 (patch) | |
| tree | 8f4808d60917100b18a10b05230f7638a0a9bbcc /cpu/mcf5445x/cpu.c | |
| parent | baf449fc5ff96f071bb0e3789fd3265f6d4fd9a0 (diff) | |
| parent | 92c78a3bbcb2ce508b4bf1c4a1e0940406a024bb (diff) | |
| download | olio-uboot-2014.01-cb5473205206c7f14cbb1e747f28ec75b48826e2.tar.xz olio-uboot-2014.01-cb5473205206c7f14cbb1e747f28ec75b48826e2.zip | |
Merge branch 'fixes' into cleanups
Conflicts:
	board/atmel/atngw100/atngw100.c
	board/atmel/atstk1000/atstk1000.c
	cpu/at32ap/at32ap700x/gpio.c
	include/asm-avr32/arch-at32ap700x/clk.h
	include/configs/atngw100.h
	include/configs/atstk1002.h
	include/configs/atstk1003.h
	include/configs/atstk1004.h
	include/configs/atstk1006.h
	include/configs/favr-32-ezkit.h
	include/configs/hammerhead.h
	include/configs/mimc200.h
Diffstat (limited to 'cpu/mcf5445x/cpu.c')
| -rw-r--r-- | cpu/mcf5445x/cpu.c | 27 | 
1 files changed, 14 insertions, 13 deletions
| diff --git a/cpu/mcf5445x/cpu.c b/cpu/mcf5445x/cpu.c index ab342ddeb..6238bc020 100644 --- a/cpu/mcf5445x/cpu.c +++ b/cpu/mcf5445x/cpu.c @@ -28,6 +28,7 @@  #include <common.h>  #include <watchdog.h>  #include <command.h> +#include <netdev.h>  #include <asm/immap.h> @@ -75,21 +76,23 @@ int checkcpu(void)  	}  	if (id) { +		char buf1[32], buf2[32], buf3[32]; +  		printf("Freescale MCF%d (Mask:%01x Version:%x)\n", id, msk,  		       ver); -		printf("       CPU CLK %d Mhz BUS CLK %d Mhz FLB CLK %d Mhz\n", -		       (int)(gd->cpu_clk / 1000000), -		       (int)(gd->bus_clk / 1000000), -		       (int)(gd->flb_clk / 1000000)); +		printf("       CPU CLK %s MHz BUS CLK %s MHz FLB CLK %s MHz\n", +		       strmhz(buf1, gd->cpu_clk), +		       strmhz(buf2, gd->bus_clk), +		       strmhz(buf3, gd->flb_clk));  #ifdef CONFIG_PCI -		printf("       PCI CLK %d Mhz INP CLK %d Mhz VCO CLK %d Mhz\n", -		       (int)(gd->pci_clk / 1000000), -		       (int)(gd->inp_clk / 1000000), -		       (int)(gd->vco_clk / 1000000)); +		printf("       PCI CLK %s MHz INP CLK %s MHz VCO CLK %s MHz\n", +		       strmhz(buf1, gd->pci_clk), +		       strmhz(buf2, gd->inp_clk), +		       strmhz(buf3, gd->vco_clk));  #else -		printf("       INP CLK %d Mhz VCO CLK %d Mhz\n", -		       (int)(gd->inp_clk / 1000000), -		       (int)(gd->vco_clk / 1000000)); +		printf("       INP CLK %s MHz VCO CLK %s MHz\n", +		       strmhz(buf1, gd->inp_clk), +		       strmhz(buf2, gd->vco_clk));  #endif  	} @@ -102,8 +105,6 @@ int checkcpu(void)   * 	int board_eth_init(bd_t *bis)   */ -extern int mcffec_initialize(bd_t*); -  int cpu_eth_init(bd_t *bis)  {  	return mcffec_initialize(bis); |