aboutsummaryrefslogtreecommitdiff
path: root/src/soc/marvell/mvmap2315/romstage.c
diff options
context:
space:
mode:
authorHakim Giydan <hgiydan@marvell.com>2016-09-08 10:47:55 -0700
committerMartin Roth <martinroth@google.com>2016-09-13 16:57:23 +0200
commit93e6f1a917b6b17c6e62ad0fff1699416ab00d29 (patch)
tree28a8b82d9fa1da60487fe3b88f89bebc0b400ff4 /src/soc/marvell/mvmap2315/romstage.c
parent6a1a36f7e9afc9a9dbdee813613243805e829a85 (diff)
soc/marvell/mvmap2315: Add load_validate driver
Load_validate: it loads and validates images from flash using hash values stored in the BDB. Testing: booted successfully. Change-Id: I0b00e8c60ed76622d03cb232d5c4273b4077aae7 Signed-off-by: Hakim Giydan <hgiydan@marvell.com> Reviewed-on: https://review.coreboot.org/16148 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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/soc/marvell/mvmap2315/romstage.c b/src/soc/marvell/mvmap2315/romstage.c
index dfd3bcf91a..cffa8d0bff 100644
--- a/src/soc/marvell/mvmap2315/romstage.c
+++ b/src/soc/marvell/mvmap2315/romstage.c
@@ -17,10 +17,12 @@
#include <stdint.h>
#include <stdlib.h>
+#include <arch/io.h>
#include <arch/exception.h>
#include <cbmem.h>
#include <console/console.h>
#include <program_loading.h>
+#include <soc/addressmap.h>
#include <soc/clock.h>
#include <soc/mmu_operations.h>
@@ -32,6 +34,11 @@ void main(void)
clock_init();
+ write32((void *)MVMAP2315_BOOTBLOCK_CB1, 0x4);
+
+ while (read32((void *)MVMAP2315_BOOTBLOCK_CB2) != 0x4)
+ ;
+
mvmap2315_mmu_init();
cbmem_initialize_empty();