powerpc/85xx: CONFIG_ENABLE_36BIT_PHYS does not depend on CONFIG_PHYS_64BIT
PATCH 1/2 powerpc/85xx: CONFIG_ENABLE_36BIT_PHYS does not depend on CONFIG_PHYS_64BIT
The macro CONFIG_ENABLE_36BIT_PHYS is used to indicate that the given SOC is capable of 36-bit physical addresses, even if such large addresses are not used. On two boards, this macro was enabled only when building a 36-bit image.
--- include/configs/P1022DS.h | 3 ++- include/configs/p1_p2_rdb_pc.h | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-)
include/configs/P1022DS.h +2 -1
@@ -43,8 +43,9 @@#define CONFIG_FSL_PCIE_RESET /* need PCIe reset errata */ #define CONFIG_SYS_PCI_64BIT /* enable 64-bit PCI resources */ -#ifdef CONFIG_PHYS_64BIT #define CONFIG_ENABLE_36BIT_PHYS + +#ifdef CONFIG_PHYS_64BIT #define CONFIG_ADDR_MAP #define CONFIG_SYS_NUM_ADDR_MAP 16/* number of TLB1 entries */ #endif
include/configs/p1_p2_rdb_pc.h +1 -2
@@ -204,9 +204,8 @@#define CONFIG_BTB #define CONFIG_BOARD_EARLY_INIT_F /* Call board_pre_init */ -#ifdef CONFIG_PHYS_64BIT +#define CONFIG_ENABLE_36BIT_PHYS -#endif #ifdef CONFIG_PHYS_64BIT #define CONFIG_ADDR_MAP 1
Signature · 1 line
1.7.3.4
PATCH 2/2 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.
So instead of displaying this message at boot time, the address map size information is moved into the 'bdinfo' command. The board-specific code is deleted.
--- board/freescale/corenet_ds/corenet_ds.c | 4 ---- board/freescale/mpc8536ds/mpc8536ds.c | 7 +------ board/freescale/mpc8572ds/mpc8572ds.c | 6 +----- board/freescale/p1010rdb/p1010rdb.c | 6 +----- board/freescale/p1022ds/p1022ds.c | 8 ++------ board/freescale/p1_p2_rdb/p1_p2_rdb.c | 4 +--- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 8 +------- board/freescale/p2020ds/p2020ds.c | 8 ++------ board/freescale/p2041rdb/p2041rdb.c | 4 ---- common/cmd_bdinfo.c | 8 ++++++++ 10 files changed, 17 insertions(+), 46 deletions(-)
board/freescale/corenet_ds/corenet_ds.c +0 -4
@@ -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. */
board/freescale/mpc8536ds/mpc8536ds.c +1 -6
@@ -62,12 +62,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 ));
board/freescale/mpc8572ds/mpc8572ds.c +1 -5
@@ -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 ));
board/freescale/p1010rdb/p1010rdb.c +1 -5
@@ -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 ; }
board/freescale/p1022ds/p1022ds.c +2 -6
@@ -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 ));
board/freescale/p1_p2_rdb/p1_p2_rdb.c +1 -3
@@ -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 );/*
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +1 -7
@@ -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 );
board/freescale/p2020ds/p2020ds.c +2 -6
@@ -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 ));
board/freescale/p2041rdb/p2041rdb.c +0 -4
@@ -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.
common/cmd_bdinfo.c +8 -0
@@ -96,6 +96,14 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])print_str ("pevfreq" ,strmhz (buf, bd->bi_pevfreq));#endif +#ifdef CONFIG_ENABLE_36BIT_PHYS +#ifdef CONFIG_PHYS_64BIT +puts ("addressing = 36-bit\n" ); +#else +puts ("addressing = 32-bit\n" ); +#endif +#endif +print_eth (0 );#if defined(CONFIG_HAS_ETH1 )print_eth (1 );
Signature · 1 line
1.7.3.4
PATCH 2/2 powerpc/85xx: don't display address map size (32-bit vs. 36-bit) during boot
Dear Timur Tabi,
Quoted 12 lines · In message <[email protected]> you wrote:
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.
So instead of displaying this message at boot time, the address map size information is moved into the 'bdinfo' command. The board-specific code is deleted.
Signed-off-by Timur Tabi <[email protected]>
Quoted 12 lines
--- board/freescale/corenet_ds/corenet_ds.c | 4 ---- board/freescale/mpc8536ds/mpc8536ds.c | 7 +------ board/freescale/mpc8572ds/mpc8572ds.c | 6 +----- board/freescale/p1010rdb/p1010rdb.c | 6 +----- board/freescale/p1022ds/p1022ds.c | 8 ++------ board/freescale/p1_p2_rdb/p1_p2_rdb.c | 4 +--- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 8 +------- board/freescale/p2020ds/p2020ds.c | 8 ++------ board/freescale/p2041rdb/p2041rdb.c | 4 ---- common/cmd_bdinfo.c | 8 ++++++++ 10 files changed, 17 insertions(+), 46 deletions(-)
Checkpatch says:
total: 0 errors, 2 warnings, 123 lines checked
Please clean up and resubmit. Thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "We don't have to protect the environment -- the Second Coming is at hand." - James Watt
Kumar Gala
AppliedPATCH 1/2 powerpc/85xx: CONFIG_ENABLE_36BIT_PHYS does not depend on CONFIG_PHYS_64BIT
In reply to Timur TabiQuoted 10 lines · Timur Tabi
The macro
CONFIG_ENABLE_36BIT_PHYSis used to indicate that the given SOC is capable of 36-bit physical addresses, even if such large addresses are not used. On two boards, this macro was enabled only when building a 36-bit image.Signed-off-by Timur Tabi <[email protected]>---
include/configs/P1022DS.h | 3 ++- include/configs/p1_p2_rdb_pc.h | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-)
applied to 85xx
- k