Merge branch 'master' into u-boot-5329-early
[oweals/u-boot.git] / cpu / mpc83xx / cpu.c
index 332afaad9f585b8ef1c2cfe68adc2abc1d92ed43..841fe82428d4c9b5509ee3f6fe63923c02b946a6 100644 (file)
@@ -52,7 +52,7 @@ int checkcpu(void)
 
        immr = (immap_t *)CFG_IMMR;
 
-       puts("CPU: ");
+       puts("CPU:   ");
 
        switch (pvr & 0xffff0000) {
                case PVR_E300C1:
@@ -158,10 +158,12 @@ int checkcpu(void)
        /* Multiple revisons of 834x processors may have the same SPRIDR value.
         * So use PVR to identify the revision number.
         */
-       printf("Rev: %02x at %s MHz\n", PVR_MAJ(pvr)<<4 | PVR_MIN(pvr), strmhz(buf, clock));
+       printf("Rev: %02x at %s MHz", PVR_MAJ(pvr)<<4 | PVR_MIN(pvr), strmhz(buf, clock));
 #else
-       printf("Rev: %02x at %s MHz\n", spridr & 0x0000FFFF, strmhz(buf, clock));
+       printf("Rev: %02x at %s MHz", spridr & 0x0000FFFF, strmhz(buf, clock));
 #endif
+       printf(", CSB: %4d MHz\n", gd->csb_clk / 1000000);
+
        return 0;
 }
 
@@ -413,7 +415,7 @@ static const struct {
                "clock-frequency",
                fdt_set_busfreq
        },
-#ifdef CONFIG_MPC83XX_TSEC1
+#ifdef CONFIG_TSEC1
        {       "/" OF_SOC "/ethernet@24000,
                "mac-address",
                fdt_set_eth0
@@ -423,7 +425,7 @@ static const struct {
                fdt_set_eth0
        },
 #endif
-#ifdef CONFIG_MPC83XX_TSEC2
+#ifdef CONFIG_TSEC2
        {       "/" OF_SOC "/ethernet@25000,
                "mac-address",
                fdt_set_eth1
@@ -523,7 +525,7 @@ ft_cpu_setup(void *blob, bd_t *bd)
        if (p != NULL)
                *p = cpu_to_be32(clock);
 
-#ifdef CONFIG_MPC83XX_TSEC1
+#ifdef CONFIG_TSEC1
        p = ft_get_prop(blob, "/" OF_SOC "/ethernet@24000/mac-address", &len);
        if (p != NULL)
                memcpy(p, bd->bi_enetaddr, 6);
@@ -533,7 +535,7 @@ ft_cpu_setup(void *blob, bd_t *bd)
                memcpy(p, bd->bi_enetaddr, 6);
 #endif
 
-#ifdef CONFIG_MPC83XX_TSEC2
+#ifdef CONFIG_TSEC2
        p = ft_get_prop(blob, "/" OF_SOC "/ethernet@25000/mac-address", &len);
        if (p != NULL)
                memcpy(p, bd->bi_enet1addr, 6);