[U-Boot] [U-Boot, v2, 2/2] powerpcv2: Print hardcoded size like print_size() does

York Sun yorksun at freescale.com
Tue Aug 20 01:32:37 CEST 2013


Stefan,

Would you ack this patch? It has a minor change to
arch/powerpc/cpu/ppc4xx/cpu.c.

On 08/15/2013 09:25 AM, Shruti Kanetkar wrote:
> Makes the startup output more consistent
> 
> Signed-off-by: Shruti Kanetkar <Shruti at Freescale.com>
> Acked-by: Andy Fleming <afleming at freescale.com>
> 
> ---
> arch/powerpc/cpu/mpc824x/cpu.c      |  2 +-
>  arch/powerpc/cpu/mpc85xx/cpu.c      |  2 +-
>  arch/powerpc/cpu/mpc85xx/cpu_init.c | 14 +++++++-------
>  arch/powerpc/cpu/mpc86xx/cpu.c      |  6 +++---
>  arch/powerpc/cpu/mpc8xx/cpu.c       |  6 +++---
>  arch/powerpc/cpu/mpc8xx/video.c     |  4 ++--
>  arch/powerpc/cpu/ppc4xx/cpu.c       |  8 ++++----
>  7 files changed, 21 insertions(+), 21 deletions(-)
> 

<snip>

> diff --git a/arch/powerpc/cpu/ppc4xx/cpu.c b/arch/powerpc/cpu/ppc4xx/cpu.c
> index fe05098..78d212d 100644
> --- a/arch/powerpc/cpu/ppc4xx/cpu.c
> +++ b/arch/powerpc/cpu/ppc4xx/cpu.c
> @@ -647,12 +647,12 @@ int checkcpu (void)
>  #endif
>  
>  #if defined(CONFIG_405EP) || defined(CONFIG_405EZ) || defined(CONFIG_405EX)
> -	printf ("       16 kB I-Cache 16 kB D-Cache");
> +	printf("       16 KiB I-Cache 16 KiB D-Cache");
>  #elif defined(CONFIG_440)
> -	printf ("       32 kB I-Cache 32 kB D-Cache");
> +	printf("       32 KiB I-Cache 32 KiB D-Cache");
>  #else
> -	printf ("       16 kB I-Cache %d kB D-Cache",
> -		((pvr | 0x00000001) == PVR_405GPR_RB) ? 16 : 8);
> +	printf("       16 KiB I-Cache %d KiB D-Cache",
> +	       ((pvr | 0x00000001) == PVR_405GPR_RB) ? 16 : 8);
>  #endif
>  
>  #endif /* !defined(CONFIG_405) */
> 


Thanks.

York





More information about the U-Boot mailing list