]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
powerpc/corenet2: Print SerDes protocol in decimal
authorYork Sun <yorksun@freescale.com>
Mon, 25 Mar 2013 07:33:26 +0000 (07:33 +0000)
committerAndy Fleming <afleming@freescale.com>
Tue, 14 May 2013 21:00:28 +0000 (16:00 -0500)
Use decimal and hexadecimal for protocol numbers. It helps to match with
SoC user manual.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c

index 01dcdf6bc1ae2f737e050e711c288c49b5b55513..93eca766920818db86ad43a20c8392abd991d794 100644 (file)
@@ -164,7 +164,7 @@ u64 serdes_init(u32 sd, u32 sd_addr, u32 sd_prctl_mask, u32 sd_prctl_shift)
        }
 
        cfg >>= sd_prctl_shift;
-       printf("Using SERDES%d Protocol: 0x%x\n", sd + 1, cfg);
+       printf("Using SERDES%d Protocol: %d (0x%x)\n", sd + 1, cfg, cfg);
        if (!is_serdes_prtcl_valid(sd, cfg))
                printf("SERDES%d[PRTCL] = 0x%x is not valid\n", sd + 1, cfg);