diff options
| author | Tom Rini <trini@ti.com> | 2013-08-21 16:27:47 -0400 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2013-08-21 16:27:47 -0400 | 
| commit | 6612ab33956ae09c5ba2fde9c1540b519625ba37 (patch) | |
| tree | b6da2e20793336cf0eed44292edb3b5e7ce88819 /arch/powerpc/cpu/mpc8xx/cpu.c | |
| parent | 3fb858891273945ce2238e6d4dac3363a1fb0853 (diff) | |
| parent | b6df9b01fb8c126b212aba92b6523407d3fa60a5 (diff) | |
| download | olio-uboot-2014.01-6612ab33956ae09c5ba2fde9c1540b519625ba37.tar.xz olio-uboot-2014.01-6612ab33956ae09c5ba2fde9c1540b519625ba37.zip | |
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'arch/powerpc/cpu/mpc8xx/cpu.c')
| -rw-r--r-- | arch/powerpc/cpu/mpc8xx/cpu.c | 24 | 
1 files changed, 11 insertions, 13 deletions
| diff --git a/arch/powerpc/cpu/mpc8xx/cpu.c b/arch/powerpc/cpu/mpc8xx/cpu.c index 1550045e6..5c96b5fe1 100644 --- a/arch/powerpc/cpu/mpc8xx/cpu.c +++ b/arch/powerpc/cpu/mpc8xx/cpu.c @@ -136,10 +136,8 @@ static int check_CPU (long clock, uint pvr, uint immr)  #else  	printf (" at %s MHz: ", strmhz (buf, clock));  #endif -	printf ("%u kB I-Cache %u kB D-Cache", -		checkicache () >> 10, -		checkdcache () >> 10 -	); +	print_size(checkicache(), " I-Cache "); +	print_size(checkdcache(), " D-Cache");  	/* do we have a FEC (860T/P or 852/859/866/885)? */ @@ -204,10 +202,10 @@ static int check_CPU (long clock, uint pvr, uint immr)  		printf ("unknown MPC857 (0x%08x)", k);  #endif -	printf (" at %s MHz:", strmhz (buf, clock)); +	printf(" at %s MHz: ", strmhz(buf, clock)); -	printf (" %u kB I-Cache", checkicache () >> 10); -	printf (" %u kB D-Cache", checkdcache () >> 10); +	print_size(checkicache(), " I-Cache "); +	print_size(checkdcache(), " D-Cache");  	/* lets check and see if we're running on a 862T (or P?) */ @@ -265,10 +263,10 @@ static int check_CPU (long clock, uint pvr, uint immr)  	if (suf)  		printf ("PPC823ZTnn%s", suf); -	printf (" at %s MHz:", strmhz (buf, clock)); +	printf(" at %s MHz: ", strmhz(buf, clock)); -	printf (" %u kB I-Cache", checkicache () >> 10); -	printf (" %u kB D-Cache", checkdcache () >> 10); +	print_size(checkicache(), " I-Cache "); +	print_size(checkdcache(), " D-Cache");  	/* lets check and see if we're running on a 860T (or P?) */ @@ -321,10 +319,10 @@ static int check_CPU (long clock, uint pvr, uint immr)  	default:  		printf ("unknown MPC850 (0x%08x)", k);  	} -	printf (" at %s MHz:", strmhz (buf, clock)); +	printf(" at %s MHz: ", strmhz(buf, clock)); -	printf (" %u kB I-Cache", checkicache () >> 10); -	printf (" %u kB D-Cache", checkdcache () >> 10); +	print_size(checkicache(), " I-Cache "); +	print_size(checkdcache(), " D-Cache");  	/* lets check and see if we're running on a 850T (or P?) */ |