projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reworked FSL Book-E TLB macros to be more readable
[oweals/u-boot.git]
/
lib_ppc
/
board.c
diff --git
a/lib_ppc/board.c
b/lib_ppc/board.c
index c87d46c3d626a1b00bb06fc373aaf6f1dcc24001..9aa67f93c0f66a6e5764cc1ee31a856da701f924 100644
(file)
--- 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)
{
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, "");
if ((gd->ram_size = initdram (board_type)) > 0) {
print_size (gd->ram_size, "");
-#ifdef CONFIG_ADD_RAM_INFO
board_add_ram_info(0);
board_add_ram_info(0);
-#endif
putc('\n');
return (0);
}
putc('\n');
return (0);
}