summaryrefslogtreecommitdiff
path: root/src/soc/marvell/mvmap2315/romstage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/marvell/mvmap2315/romstage.c')
-rw-r--r--src/soc/marvell/mvmap2315/romstage.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/marvell/mvmap2315/romstage.c b/src/soc/marvell/mvmap2315/romstage.c
index cffa8d0bff..09347c0305 100644
--- a/src/soc/marvell/mvmap2315/romstage.c
+++ b/src/soc/marvell/mvmap2315/romstage.c
@@ -25,6 +25,9 @@
#include <soc/addressmap.h>
#include <soc/clock.h>
#include <soc/mmu_operations.h>
+#include <soc/sdram.h>
+
+extern struct mvmap2315_sdram_params ddr_params;
void main(void)
{
@@ -34,6 +37,8 @@ void main(void)
clock_init();
+ sdram_init(&ddr_params);
+
write32((void *)MVMAP2315_BOOTBLOCK_CB1, 0x4);
while (read32((void *)MVMAP2315_BOOTBLOCK_CB2) != 0x4)