summaryrefslogtreecommitdiff
path: root/board/ve8313/ve8313.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/ve8313/ve8313.c')
-rw-r--r--board/ve8313/ve8313.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/ve8313/ve8313.c b/board/ve8313/ve8313.c
index 5349a58..37441c7 100644
--- a/board/ve8313/ve8313.c
+++ b/board/ve8313/ve8313.c
@@ -88,7 +88,7 @@ static long fixed_sdram(void)
return msize;
}
-phys_size_t initdram(void)
+int initdram(void)
{
volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR;
volatile fsl_lbc_t *lbc = &im->im_lbc;
@@ -106,7 +106,9 @@ phys_size_t initdram(void)
sync();
/* return total bus SDRAM size(bytes) -- DDR */
- return msize;
+ gd->ram_size = msize;
+
+ return 0;
}
#define VE8313_WDT_EN 0x00020000