diff options
author | Hakim Giydan <hgiydan@marvell.com> | 2016-09-09 11:29:09 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-09-13 17:03:53 +0200 |
commit | e889b19ba08830882da18614494b811c3698520e (patch) | |
tree | 4e4de097c8ebb727f6ce4a644a3272d32ab7cd11 /src/soc/marvell/mvmap2315/romstage.c | |
parent | f727c7ce38cc58eaf24c55d440e885a1b24a26a1 (diff) |
soc/marvell/mvmap2315: Add DDR driver
This driver is only a prototype driver, real driver
will be integrated at a later time.
Testing: booted successfully.
Change-Id: I372764962e96e5c9c827d524bc369978c5c1fda8
Signed-off-by: Hakim Giydan <hgiydan@marvell.com>
Reviewed-on: https://review.coreboot.org/16554
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/marvell/mvmap2315/romstage.c')
-rw-r--r-- | src/soc/marvell/mvmap2315/romstage.c | 5 |
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) |