]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
powerpc/85xx: don't display address map size (32-bit vs. 36-bit) during boot
authorTimur Tabi <timur@freescale.com>
Thu, 15 Mar 2012 11:42:27 +0000 (11:42 +0000)
committerAndy Fleming <afleming@freescale.com>
Wed, 25 Apr 2012 04:58:34 +0000 (23:58 -0500)
Most 85xx boards can be built as a 32-bit or a 36-bit.  Current code sometimes
displays which of these is actually built, but it's inconsistent.  This is
especially problematic since the "default" build for a given 85xx board can
be either one, so if you don't see a message, you can't always know which
size is being used.  Not only that, but each board includes code that displays
the message, so there is duplication.

The 'bdinfo' command has been updated to display this information, so
we don't need to display it at boot time.  The board-specific code is
deleted.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
board/freescale/corenet_ds/corenet_ds.c
board/freescale/mpc8536ds/mpc8536ds.c
board/freescale/mpc8572ds/mpc8572ds.c
board/freescale/mpc8641hpcn/mpc8641hpcn.c
board/freescale/p1010rdb/p1010rdb.c
board/freescale/p1022ds/p1022ds.c
board/freescale/p1_p2_rdb/p1_p2_rdb.c
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
board/freescale/p2020ds/p2020ds.c
board/freescale/p2041rdb/p2041rdb.c
board/freescale/p3060qds/p3060qds.c

index b1eecc495d8e1036e4956dd150e79a3a80ad3256..a33c936fa00997fd9d387f29a498997a1389d636 100644 (file)
@@ -62,10 +62,6 @@ int checkboard (void)
        else
                printf("invalid setting of SW%u\n", PIXIS_LBMAP_SWITCH);
 
-#ifdef CONFIG_PHYS_64BIT
-       puts("36-bit Addressing\n");
-#endif
-
        /* Display the RCW, so that no one gets confused as to what RCW
         * we're actually using for this boot.
         */
index c9f85c857b1ea6d11130d83950c2e3349d08ed26..6d0bfde2320f56733e8b6bda9c30c91df153b62c 100644 (file)
@@ -68,12 +68,7 @@ int checkboard (void)
        u8 vboot;
        u8 *pixis_base = (u8 *)PIXIS_BASE;
 
-       puts("Board: MPC8536DS ");
-#ifdef CONFIG_PHYS_64BIT
-       puts("(36-bit addrmap) ");
-#endif
-
-       printf ("Sys ID: 0x%02x, "
+       printf("Board: MPC8536DS Sys ID: 0x%02x, "
                "Sys Ver: 0x%02x, FPGA Ver: 0x%02x, ",
                in_8(pixis_base + PIXIS_ID), in_8(pixis_base + PIXIS_VER),
                in_8(pixis_base + PIXIS_PVER));
index b20299e36f678ec94a8a69ffb56623d976f0ccd8..33a02ba8d3b7b5ac9a9f73bcc8cf7e4b888eeb01 100644 (file)
@@ -45,11 +45,7 @@ int checkboard (void)
        u8 vboot;
        u8 *pixis_base = (u8 *)PIXIS_BASE;
 
-       puts ("Board: MPC8572DS ");
-#ifdef CONFIG_PHYS_64BIT
-       puts ("(36-bit addrmap) ");
-#endif
-       printf ("Sys ID: 0x%02x, "
+       printf("Board: MPC8572DS Sys ID: 0x%02x, "
                "Sys Ver: 0x%02x, FPGA Ver: 0x%02x, ",
                in_8(pixis_base + PIXIS_ID), in_8(pixis_base + PIXIS_VER),
                in_8(pixis_base + PIXIS_PVER));
index 455569e422b1f702cd332b3bf5ebf4d6f2156003..6a0a3a2b37b3445af210593f78298385e17ef71c 100644 (file)
@@ -50,9 +50,6 @@ int checkboard(void)
        else
                puts ("Promjet\n");
 
-#ifdef CONFIG_PHYS_64BIT
-       printf ("       36-bit physical address map\n");
-#endif
        return 0;
 }
 
index b9e66f7fa758374dba97032d83492ffcc8cf610f..79a6ead7dd36a475134ffe7c4e09073eb7c9124b 100644 (file)
@@ -165,11 +165,7 @@ int checkboard(void)
        struct cpu_type *cpu;
 
        cpu = gd->cpu;
-       printf("Board: %sRDB ", cpu->name);
-#ifdef CONFIG_PHYS_64BIT
-       puts("(36-bit addrmap)");
-#endif
-       puts("\n");
+       printf("Board: %sRDB\n", cpu->name);
 
        return 0;
 }
index 456d9b0e3422d93013d8c1ad26635d18461f9836..aca30f368070e2010278b0084063759e77277369 100644 (file)
@@ -56,12 +56,8 @@ int checkboard(void)
 {
        u8 sw;
 
-       puts("Board: P1022DS ");
-#ifdef CONFIG_PHYS_64BIT
-       puts("(36-bit addrmap) ");
-#endif
-
-       printf("Sys ID: 0x%02x, Sys Ver: 0x%02x, FPGA Ver: 0x%02x, ",
+       printf("Board: P1022DS Sys ID: 0x%02x, "
+              "Sys Ver: 0x%02x, FPGA Ver: 0x%02x, ",
                in_8(&pixis->id), in_8(&pixis->arch), in_8(&pixis->scver));
 
        sw = in_8(&PIXIS_SW(PIXIS_LBMAP_SWITCH));
index cfbae69119872fcff406614afb6ed3bd5f8f06e3..437eaf0fdd6e0852aa791855abdebf8c138137df 100644 (file)
@@ -110,9 +110,7 @@ int checkboard (void)
 
        cpu = gd->cpu;
        printf ("Board: %sRDB Rev%c\n", cpu->name, board_rev);
-#ifdef CONFIG_PHYS_64BIT
-       puts ("(36-bit addrmap) \n");
-#endif
+
        setbits_be32(&pgpio->gpdir, GPIO_DIR);
 
 /*
index a60c5a20a982fdbbe8dfb68654884175788cacec..aa39260ca7ed084589a444f52e9ac546dbdb0058 100644 (file)
@@ -225,13 +225,7 @@ int checkboard(void)
        ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
        u8 in, out, io_config, val;
 
-       printf("Board: %s ", CONFIG_BOARDNAME);
-
-#ifdef CONFIG_PHYS_64BIT
-       puts("(36-bit addrmap) ");
-#endif
-
-       printf("CPLD: V%d.%d PCBA: V%d.0\n",
+       printf("Board: %s CPLD: V%d.%d PCBA: V%d.0\n", CONFIG_BOARDNAME,
                in_8(&cpld_data->cpld_rev_major) & 0x0F,
                in_8(&cpld_data->cpld_rev_minor) & 0x0F,
                in_8(&cpld_data->pcba_rev) & 0x0F);
index d3af6cf185167e3fc4af9b76f38d1ff1291b349d..e8d31a4acf34dae937a29ce693c61884f56570b5 100644 (file)
@@ -61,12 +61,8 @@ int checkboard(void)
 {
        u8 sw;
 
-       puts("Board: P2020DS ");
-#ifdef CONFIG_PHYS_64BIT
-       puts("(36-bit addrmap) ");
-#endif
-
-       printf("Sys ID: 0x%02x, Sys Ver: 0x%02x, FPGA Ver: 0x%02x, ",
+       printf("Board: P2020DS Sys ID: 0x%02x, "
+              "Sys Ver: 0x%02x, FPGA Ver: 0x%02x, ",
                in_8(&pixis->id), in_8(&pixis->arch), in_8(&pixis->scver));
 
        sw = in_8(&PIXIS_SW(PIXIS_LBMAP_SWITCH));
index 1f6a34b3d9434de5c7f945e48e94ba7125e246e4..976c8d290b0ffa4b0492f6fc6a4c94ee38b252df 100644 (file)
@@ -54,10 +54,6 @@ int checkboard(void)
        sw = CPLD_READ(fbank_sel);
        printf("vBank: %d\n", sw & 0x1);
 
-#ifdef CONFIG_PHYS_64BIT
-       puts("36-bit Addressing\n");
-#endif
-
        /*
         * Display the RCW, so that no one gets confused as to what RCW
         * we're actually using for this boot.
index c6c74f200450344f8885d1b2ff2712e085bfff7f..c7cca2a0ccdff63d7c06c5e6895c456b6a61993a 100644 (file)
@@ -68,9 +68,6 @@ int checkboard(void)
        else
                printf("invalid setting of SW%u\n", PIXIS_LBMAP_SWITCH);
 
-#ifdef CONFIG_PHYS_64BIT
-       puts("36-bit Addressing\n");
-#endif
        puts("Reset Configuration Word (RCW):");
        for (i = 0; i < ARRAY_SIZE(gur->rcwsr); i++) {
                u32 rcw = in_be32(&gur->rcwsr[i]);