mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
powerpc/85xx: don't display address map size (32-bit vs. 36-bit) during boot
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>
This commit is contained in:
parent
34e210f5bd
commit
5d065c3e10
11 changed files with 9 additions and 52 deletions
|
@ -62,10 +62,6 @@ int checkboard (void)
|
||||||
else
|
else
|
||||||
printf("invalid setting of SW%u\n", PIXIS_LBMAP_SWITCH);
|
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
|
/* Display the RCW, so that no one gets confused as to what RCW
|
||||||
* we're actually using for this boot.
|
* we're actually using for this boot.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -68,12 +68,7 @@ int checkboard (void)
|
||||||
u8 vboot;
|
u8 vboot;
|
||||||
u8 *pixis_base = (u8 *)PIXIS_BASE;
|
u8 *pixis_base = (u8 *)PIXIS_BASE;
|
||||||
|
|
||||||
puts("Board: MPC8536DS ");
|
printf("Board: MPC8536DS Sys ID: 0x%02x, "
|
||||||
#ifdef CONFIG_PHYS_64BIT
|
|
||||||
puts("(36-bit addrmap) ");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
printf ("Sys ID: 0x%02x, "
|
|
||||||
"Sys Ver: 0x%02x, FPGA Ver: 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_ID), in_8(pixis_base + PIXIS_VER),
|
||||||
in_8(pixis_base + PIXIS_PVER));
|
in_8(pixis_base + PIXIS_PVER));
|
||||||
|
|
|
@ -45,11 +45,7 @@ int checkboard (void)
|
||||||
u8 vboot;
|
u8 vboot;
|
||||||
u8 *pixis_base = (u8 *)PIXIS_BASE;
|
u8 *pixis_base = (u8 *)PIXIS_BASE;
|
||||||
|
|
||||||
puts ("Board: MPC8572DS ");
|
printf("Board: MPC8572DS Sys ID: 0x%02x, "
|
||||||
#ifdef CONFIG_PHYS_64BIT
|
|
||||||
puts ("(36-bit addrmap) ");
|
|
||||||
#endif
|
|
||||||
printf ("Sys ID: 0x%02x, "
|
|
||||||
"Sys Ver: 0x%02x, FPGA Ver: 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_ID), in_8(pixis_base + PIXIS_VER),
|
||||||
in_8(pixis_base + PIXIS_PVER));
|
in_8(pixis_base + PIXIS_PVER));
|
||||||
|
|
|
@ -50,9 +50,6 @@ int checkboard(void)
|
||||||
else
|
else
|
||||||
puts ("Promjet\n");
|
puts ("Promjet\n");
|
||||||
|
|
||||||
#ifdef CONFIG_PHYS_64BIT
|
|
||||||
printf (" 36-bit physical address map\n");
|
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -165,11 +165,7 @@ int checkboard(void)
|
||||||
struct cpu_type *cpu;
|
struct cpu_type *cpu;
|
||||||
|
|
||||||
cpu = gd->cpu;
|
cpu = gd->cpu;
|
||||||
printf("Board: %sRDB ", cpu->name);
|
printf("Board: %sRDB\n", cpu->name);
|
||||||
#ifdef CONFIG_PHYS_64BIT
|
|
||||||
puts("(36-bit addrmap)");
|
|
||||||
#endif
|
|
||||||
puts("\n");
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,12 +56,8 @@ int checkboard(void)
|
||||||
{
|
{
|
||||||
u8 sw;
|
u8 sw;
|
||||||
|
|
||||||
puts("Board: P1022DS ");
|
printf("Board: P1022DS Sys ID: 0x%02x, "
|
||||||
#ifdef CONFIG_PHYS_64BIT
|
"Sys Ver: 0x%02x, FPGA Ver: 0x%02x, ",
|
||||||
puts("(36-bit addrmap) ");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
printf("Sys ID: 0x%02x, Sys Ver: 0x%02x, FPGA Ver: 0x%02x, ",
|
|
||||||
in_8(&pixis->id), in_8(&pixis->arch), in_8(&pixis->scver));
|
in_8(&pixis->id), in_8(&pixis->arch), in_8(&pixis->scver));
|
||||||
|
|
||||||
sw = in_8(&PIXIS_SW(PIXIS_LBMAP_SWITCH));
|
sw = in_8(&PIXIS_SW(PIXIS_LBMAP_SWITCH));
|
||||||
|
|
|
@ -110,9 +110,7 @@ int checkboard (void)
|
||||||
|
|
||||||
cpu = gd->cpu;
|
cpu = gd->cpu;
|
||||||
printf ("Board: %sRDB Rev%c\n", cpu->name, board_rev);
|
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);
|
setbits_be32(&pgpio->gpdir, GPIO_DIR);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -225,13 +225,7 @@ int checkboard(void)
|
||||||
ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
|
ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
|
||||||
u8 in, out, io_config, val;
|
u8 in, out, io_config, val;
|
||||||
|
|
||||||
printf("Board: %s ", CONFIG_BOARDNAME);
|
printf("Board: %s CPLD: V%d.%d PCBA: V%d.0\n", CONFIG_BOARDNAME,
|
||||||
|
|
||||||
#ifdef CONFIG_PHYS_64BIT
|
|
||||||
puts("(36-bit addrmap) ");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
printf("CPLD: V%d.%d PCBA: V%d.0\n",
|
|
||||||
in_8(&cpld_data->cpld_rev_major) & 0x0F,
|
in_8(&cpld_data->cpld_rev_major) & 0x0F,
|
||||||
in_8(&cpld_data->cpld_rev_minor) & 0x0F,
|
in_8(&cpld_data->cpld_rev_minor) & 0x0F,
|
||||||
in_8(&cpld_data->pcba_rev) & 0x0F);
|
in_8(&cpld_data->pcba_rev) & 0x0F);
|
||||||
|
|
|
@ -61,12 +61,8 @@ int checkboard(void)
|
||||||
{
|
{
|
||||||
u8 sw;
|
u8 sw;
|
||||||
|
|
||||||
puts("Board: P2020DS ");
|
printf("Board: P2020DS Sys ID: 0x%02x, "
|
||||||
#ifdef CONFIG_PHYS_64BIT
|
"Sys Ver: 0x%02x, FPGA Ver: 0x%02x, ",
|
||||||
puts("(36-bit addrmap) ");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
printf("Sys ID: 0x%02x, Sys Ver: 0x%02x, FPGA Ver: 0x%02x, ",
|
|
||||||
in_8(&pixis->id), in_8(&pixis->arch), in_8(&pixis->scver));
|
in_8(&pixis->id), in_8(&pixis->arch), in_8(&pixis->scver));
|
||||||
|
|
||||||
sw = in_8(&PIXIS_SW(PIXIS_LBMAP_SWITCH));
|
sw = in_8(&PIXIS_SW(PIXIS_LBMAP_SWITCH));
|
||||||
|
|
|
@ -54,10 +54,6 @@ int checkboard(void)
|
||||||
sw = CPLD_READ(fbank_sel);
|
sw = CPLD_READ(fbank_sel);
|
||||||
printf("vBank: %d\n", sw & 0x1);
|
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
|
* Display the RCW, so that no one gets confused as to what RCW
|
||||||
* we're actually using for this boot.
|
* we're actually using for this boot.
|
||||||
|
|
|
@ -68,9 +68,6 @@ int checkboard(void)
|
||||||
else
|
else
|
||||||
printf("invalid setting of SW%u\n", PIXIS_LBMAP_SWITCH);
|
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):");
|
puts("Reset Configuration Word (RCW):");
|
||||||
for (i = 0; i < ARRAY_SIZE(gur->rcwsr); i++) {
|
for (i = 0; i < ARRAY_SIZE(gur->rcwsr); i++) {
|
||||||
u32 rcw = in_be32(&gur->rcwsr[i]);
|
u32 rcw = in_be32(&gur->rcwsr[i]);
|
||||||
|
|
Loading…
Reference in a new issue