summaryrefslogtreecommitdiff
path: root/board/tqc/tqm834x/tqm834x.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/tqc/tqm834x/tqm834x.c')
-rw-r--r--board/tqc/tqm834x/tqm834x.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/tqc/tqm834x/tqm834x.c b/board/tqc/tqm834x/tqm834x.c
index eca218c9cf..4642342bfb 100644
--- a/board/tqc/tqm834x/tqm834x.c
+++ b/board/tqc/tqm834x/tqm834x.c
@@ -66,7 +66,7 @@ int board_early_init_r (void) {
/**************************************************************************
* DRAM initalization and size detection
*/
-phys_size_t initdram (int board_type)
+int dram_init(void)
{
long bank_size;
long size;
@@ -112,7 +112,9 @@ phys_size_t initdram (int board_type)
if(size < DDR_MAX_SIZE_PER_CS) break;
}
- return size;
+ gd->ram_size = size;
+
+ return 0;
}
/**************************************************************************