]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/mpc512x/speed.c
rename CFG_ macros to CONFIG_SYS
[karo-tx-uboot.git] / cpu / mpc512x / speed.c
index cfaffb57a7292b296b0bb452855a02a216ce699d..baf6215418f5726dbcdd337f029c8165df6a1498 100644 (file)
@@ -62,13 +62,13 @@ static int sys_dividors[][2] = {
 
 int get_clocks (void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u8 spmf;
        u8 cpmf;
        u8 sys_div;
        u8 ips_div;
        u8 pci_div;
-       u32 ref_clk = CFG_MPC512X_CLKIN;
+       u32 ref_clk = CONFIG_SYS_MPC512X_CLKIN;
        u32 spll;
        u32 sys_clk;
        u32 core_clk;
@@ -126,7 +126,7 @@ ulong get_bus_freq (ulong dummy)
 int do_clocks (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 {
        printf("Clock configuration:\n");
-       printf("  CPU:                 %4d MHz\n", gd->cpu_clk / 1000000);
+       printf("  CPU:                 %4ld MHz\n", gd->cpu_clk / 1000000);
        printf("  Coherent System Bus: %4d MHz\n", gd->csb_clk / 1000000);
        printf("  IPS Bus:             %4d MHz\n", gd->ips_clk / 1000000);
        printf("  PCI:                 %4d MHz\n", gd->pci_clk / 1000000);