projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.denx.de/u-boot-samsung
[platform/kernel/u-boot.git]
/
board
/
freescale
/
ls1043aqds
/
ddr.c
diff --git
a/board/freescale/ls1043aqds/ddr.c
b/board/freescale/ls1043aqds/ddr.c
index
c740062
..
f219a77
100644
(file)
--- a/
board/freescale/ls1043aqds/ddr.c
+++ b/
board/freescale/ls1043aqds/ddr.c
@@
-10,6
+10,7
@@
#ifdef CONFIG_FSL_DEEP_SLEEP
#include <fsl_sleep.h>
#endif
#ifdef CONFIG_FSL_DEEP_SLEEP
#include <fsl_sleep.h>
#endif
+#include <asm/arch/clock.h>
#include "ddr.h"
DECLARE_GLOBAL_DATA_PTR;
#include "ddr.h"
DECLARE_GLOBAL_DATA_PTR;
@@
-108,12
+109,14
@@
found:
#endif
}
#endif
}
-
phys_size_t initdram(int board_type
)
+
int fsl_initdram(void
)
{
phys_size_t dram_size;
#if defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)
{
phys_size_t dram_size;
#if defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)
- return fsl_ddr_sdram_size();
+ gd->ram_size = fsl_ddr_sdram_size();
+
+ return 0;
#else
puts("Initializing DDR....using SPD\n");
#else
puts("Initializing DDR....using SPD\n");
@@
-125,5
+128,7
@@
phys_size_t initdram(int board_type)
fsl_dp_ddr_restore();
#endif
fsl_dp_ddr_restore();
#endif
- return dram_size;
+ gd->ram_size = dram_size;
+
+ return 0;
}
}