summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@semihalf.com>2017-10-04 17:14:04 +0200
committerKostya Porotchkin <kostap@marvell.com>2017-11-23 11:43:43 +0200
commitd35484402b56e572d67a6158c10edeb252869893 (patch)
tree64580126e49e813424c2ac26c9f630b5cb55fe59
parent7e6911559d57f832824ce5d80b86ac006c113579 (diff)
plat/marvell: a70x0: configure Direct Mode window for SPI flash
In order to be able to support UEFI variables, direct mode access to the SPI flash is required. The variables will be placed at 4MB - 256KB offset. For this purpose at offset 0xf9000000 configure new window pointing to the CP0 SPI1 CS0 device. Change-Id: I61402b8741a07cf12e35050de48bbf39baeb4cbb Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/46713 Tested-by: iSoC Platform CI <ykjenk@marvell.com> Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
-rw-r--r--plat/marvell/a8k/a70x0/board/marvell_plat_config.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/plat/marvell/a8k/a70x0/board/marvell_plat_config.c b/plat/marvell/a8k/a70x0/board/marvell_plat_config.c
index 6d89a83b..c8679391 100644
--- a/plat/marvell/a8k/a70x0/board/marvell_plat_config.c
+++ b/plat/marvell/a8k/a70x0/board/marvell_plat_config.c
@@ -43,7 +43,10 @@
/*******************************************************************************
* AMB Configuration
******************************************************************************/
-struct amb_win *amb_memory_map;
+struct amb_win amb_memory_map[] = {
+ /* CP0 SPI1 CS0 Direct Mode access */
+ {0xf900, 0x1000000, AMB_SPI1_CS0_ID},
+};
uintptr_t marvell_get_amb_reg_offs(int cp_index)
{
@@ -106,6 +109,8 @@ struct iob_win iob_memory_map[] = {
{0x0, 0xf8000000, 0x0, 0x1000000, PEX2_TID},
/* PEX0_X4 window */
{0x0, 0xf6000000, 0x0, 0x1000000, PEX0_TID},
+ /* SPI1_CS0 (RUNIT) window */
+ {0x0, 0xf9000000, 0x0, 0x1000000, RUNIT_TID},
};
uintptr_t marvell_get_iob_reg_offs(int cp_index)