lib_ppc: make board_add_ram_info weak
PATCH 1/1 lib_ppc: make board_add_ram_info weak
platforms wishing to display RAM diagnostics in addition to size, can do so, on one line, in their own board_add_ram_info() implementation.
this consequently eliminates CONFIG_ADD_RAM_INFO.
Thanks to Stefan for the hint.
---
WD, you should probably apply this directly.
board/lwmon5/sdram.c | 2 -- board/netstal/hcu5/sdram.c | 2 -- cpu/ppc4xx/44x_spd_ddr2.c | 2 -- include/configs/TQM85xx.h | 1 - include/configs/hcu5.h | 1 - include/configs/katmai.h | 1 - include/configs/luan.h | 1 - include/configs/lwmon5.h | 1 - include/configs/p3mx.h | 1 - include/configs/yucca.h | 1 - lib_ppc/board.c | 11 ++++++----- 11 files changed, 6 insertions(+), 18 deletions(-)
board/lwmon5/sdram.c +0 -2
@@ -57,7 +57,6 @@void dcbz_area (u32 start_address,u32 num_bytes);void dflush (void ); -#ifdef CONFIG_ADD_RAM_INFO static u32 is_ecc_enabled (void ) {u32 val;
@@ -87,7 +86,6 @@ void board_add_ram_info(int use_default) val =DDR0_03_CASLAT_DECODE (val);printf (", CL%d)" , val); } -#endif static int wait_for_dlllock (void ) {
board/netstal/hcu5/sdram.c +0 -2
@@ -70,7 +70,6 @@ void dflush(void);void program_tlb (u32 phys_addr,u32 virt_addr,u32 size,u32 tlb_word2_i_value); -#ifdef CONFIG_ADD_RAM_INFO void board_add_ram_info (int use_default) {PPC440_SYS_INFO board_cfg;
@@ -99,7 +98,6 @@ void board_add_ram_info(int use_default) val =DDR0_03_CASLAT_DECODE (val);printf (", CL%d)" , val); } -#endif /*-------------------------------------------------------------------- * wait_for_dlllock.
cpu/ppc4xx/44x_spd_ddr2.c +0 -2
@@ -621,7 +621,6 @@ static void get_spd_info(unsigned long *dimm_populated, } } -#ifdef CONFIG_ADD_RAM_INFO void board_add_ram_info (int use_default) {PPC440_SYS_INFO board_cfg;
@@ -642,7 +641,6 @@ void board_add_ram_info(int use_default) val = (val &SDRAM_MMODE_DCL_MASK ) >>4 ;printf (", CL%d)" , val); } -#endif /*------------------------------------------------------------------ * For the memory DIMMs installed, this routine verifies that they
include/configs/TQM85xx.h +0 -1
@@ -94,7 +94,6 @@*/ #define CFG_DDR_SDRAM_BASE 0x00000000/* DDR is system memory */ #define CFG_SDRAM_BASE CFG_DDR_SDRAM_BASE -#define CONFIG_ADD_RAM_INFO 1/* print additional info*/ #if defined(CONFIG_TQM8540 ) || defined(CONFIG_TQM8560 )/* TQM8540 & 8560 need DLL-override */
include/configs/hcu5.h +0 -1
@@ -43,7 +43,6 @@#define CONFIG_BOARD_EARLY_INIT_F 1/* Call board_early_init_f */ #define CONFIG_MISC_INIT_R 1/* Call misc_init_r */ -#define CONFIG_ADD_RAM_INFO 1/* Print additional info */ /*----------------------------------------------------------------------- * Base addresses -- Note these are effective addresses where the
include/configs/katmai.h +0 -1
@@ -42,7 +42,6 @@#define CONFIG_BOARD_EARLY_INIT_F 1/* Call board_pre_init */ #define CONFIG_MISC_INIT_F 1/* Use misc_init_f() */ -#define CONFIG_ADD_RAM_INFO 1/* Print additional info */ #undef CONFIG_SHOW_BOOT_PROGRESS/*-----------------------------------------------------------------------
include/configs/luan.h +0 -1
@@ -39,7 +39,6 @@#define CONFIG_BOARD_EARLY_INIT_F 1/* call board_early_init_f() */ #define CONFIG_MISC_INIT_R 1/* call misc_init_r() */ -#define CONFIG_ADD_RAM_INFO 1/* Print additional info */ /*----------------------------------------------------------------------- * Base addresses -- Note these are effective addresses where the
include/configs/lwmon5.h +0 -1
@@ -35,7 +35,6 @@#define CONFIG_BOARD_EARLY_INIT_F 1/* Call board_early_init_f */ #define CONFIG_MISC_INIT_R 1/* Call misc_init_r */ -#define CONFIG_ADD_RAM_INFO 1/* Print additional info */ /*----------------------------------------------------------------------- * Base addresses -- Note these are effective addresses where the
include/configs/p3mx.h +0 -1
@@ -60,7 +60,6 @@#define CONFIG_BOARD_EARLY_INIT_F 1/* Call board_early_init_f */ #define CONFIG_BOARD_EARLY_INIT_R 1/* Call board_early_init_f */ #define CONFIG_MISC_INIT_R 1/* Call misc_init_r() */ -#define CONFIG_ADD_RAM_INFO 1/* Print additional info */ /*----------------------------------------------------------------------- * Base addresses -- Note these are effective addresses where the
include/configs/yucca.h +0 -1
@@ -46,7 +46,6 @@#define EXTCLK_83 83333333#define CONFIG_MISC_INIT_F 1/* Use misc_init_f() */ -#define CONFIG_ADD_RAM_INFO 1/* Print additional info */ #undef CONFIG_SHOW_BOOT_PROGRESS#undef CONFIG_STRESS
lib_ppc/board.c +6 -5
@@ -209,9 +209,12 @@ static int init_baudrate (void)/***********************************************************************/ -#ifdef CONFIG_ADD_RAM_INFO -void board_add_ram_info (int ); -#endif +void __board_add_ram_info (int use_default) +{ +/* please define platform specific board_add_ram_info() */ +} +void board_add_ram_info (int ) __attribute__((weak,alias ("__board_add_ram_info" ))); +static int init_func_ram (void ) {
@@ -224,9 +227,7 @@ static int init_func_ram (void)if ((gd->ram_size =initdram (board_type)) >0 ) {print_size (gd->ram_size,"" ); -#ifdef CONFIG_ADD_RAM_INFO board_add_ram_info (0 ); -#endif putc ('\n' );return (0 ); }
Signature · 1 line
1.5.2.2
PATCH 1/1 lib_ppc: make board_add_ram_info weak
Quoted 9 lines · Kim Phillips
platforms wishing to display RAM diagnostics in addition to size, can do so, on one line, in their own
board_add_ram_info()implementation.this consequently eliminates
CONFIG_ADD_RAM_INFO.Thanks to Stefan for the hint.
Signed-off-by Kim Phillips <[email protected]>
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
PATCH 1/1 lib_ppc: make board_add_ram_info weak
In reply to Kim PhillipsQuoted 11 lines · In message <[email protected]> you wrote:
platforms wishing to display RAM diagnostics in addition to size, can do so, on one line, in their own
board_add_ram_info()implementation.this consequently eliminates
CONFIG_ADD_RAM_INFO.Thanks to Stefan for the hint.
Signed-off-by Kim Phillips <[email protected]>---
WD, you should probably apply this directly.
Done. 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 Commitment, n.: Commitment can be illustrated by a breakfast of ham and eggs. The chicken was involved, the pig was committed.