]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc4xx: Print PCI synchronous clock frequency upon bootup
authorStefan Roese <sr@denx.de>
Mon, 19 Oct 2009 12:44:11 +0000 (14:44 +0200)
committerStefan Roese <sr@denx.de>
Fri, 23 Oct 2009 14:04:45 +0000 (16:04 +0200)
Some 4xx variants (e.g. 440EP(x)/GR(x)) have an internal
synchronous PCI clock. Knowledge about the currently configured
value might be helpful. So let's print it out upon bootup.

Signed-off-by: Stefan Roese <sr@denx.de>
cpu/ppc4xx/cpu.c

index a9a0ac3454ce460fcd6dee2e1f49d8f4cd38b643..e1b00a74c7a63736f2ceaf14cbcc2b7e5bba8370 100644 (file)
@@ -608,10 +608,17 @@ int checkcpu (void)
                break;
        }
 
-       printf (" at %s MHz (PLB=%lu, OPB=%lu, EBC=%lu MHz)\n", strmhz(buf, clock),
+       printf (" at %s MHz (PLB=%lu OPB=%lu EBC=%lu",
+               strmhz(buf, clock),
                sys_info.freqPLB / 1000000,
                get_OPB_freq() / 1000000,
                sys_info.freqEBC / 1000000);
+#if defined(CONFIG_PCI) && \
+       (defined(CONFIG_440EP) || defined(CONFIG_440EPX) || \
+        defined(CONFIG_440GR) || defined(CONFIG_440GRX))
+       printf(" PCI=%lu MHz", sys_info.freqPCI / 1000000);
+#endif
+       printf(")\n");
 
        if (addstr[0] != 0)
                printf("       %s\n", addstr);