summaryrefslogtreecommitdiff
path: root/board/v38b/v38b.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/v38b/v38b.c')
-rw-r--r--board/v38b/v38b.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/board/v38b/v38b.c b/board/v38b/v38b.c
index 20490a3..c271fb5 100644
--- a/board/v38b/v38b.c
+++ b/board/v38b/v38b.c
@@ -13,6 +13,7 @@
#include <net.h>
#include <asm/processor.h>
+DECLARE_GLOBAL_DATA_PTR;
#ifndef CONFIG_SYS_RAMBOOT
static void sdram_start(int hi_addr)
@@ -56,7 +57,7 @@ static void sdram_start(int hi_addr)
#endif /* !CONFIG_SYS_RAMBOOT */
-phys_size_t initdram(void)
+int initdram(void)
{
ulong dramsize = 0;
ulong dramsize2 = 0;
@@ -166,7 +167,9 @@ phys_size_t initdram(void)
__asm__ volatile ("sync");
}
- return dramsize + dramsize2;
+ gd->ram_size = dramsize + dramsize2;
+
+ return 0;
}