summaryrefslogtreecommitdiff
path: root/lib_ppc/board.c
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2007-08-16 22:52:39 -0500
committerWolfgang Denk <wd@denx.de>2007-08-18 21:39:46 +0200
commit79f240f7ecc0506b43ac50d1ea405ff6540d4d57 (patch)
tree6cb59212174311592f9a36af4fb11d43fb436d8e /lib_ppc/board.c
parent815b5bd5b18569917c3e04b9757511e6ed23b9f6 (diff)
downloadu-boot-imx-79f240f7ecc0506b43ac50d1ea405ff6540d4d57.zip
u-boot-imx-79f240f7ecc0506b43ac50d1ea405ff6540d4d57.tar.gz
u-boot-imx-79f240f7ecc0506b43ac50d1ea405ff6540d4d57.tar.bz2
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. Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'lib_ppc/board.c')
-rw-r--r--lib_ppc/board.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index c87d46c..9aa67f9 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -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);
}