summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorIgal Liberman <igall@marvell.com>2018-01-24 12:10:31 +0200
committerKostya Porotchkin <kostap@marvell.com>2018-01-25 14:27:27 +0200
commit518e220697834a7ff24d7d30d65e85221da21364 (patch)
treee417665009ae971f048deb3fd86250bd010e2d3f /drivers
parent51fb60cff214ba5f14e6787a5ca34bf3d6c379fe (diff)
iob: mvebu: add dsb after cp110 address configuration
This patch doesn't fix any particular issue. However, we must ensure that the cp110 base was configured before we continue (to ensure that no access to cp110 are done before the address is configured). Change-Id: I5264f82beaf9d0e9e7af6c655faabf7cd6e954cf Signed-off-by: Igal Liberman <igall@marvell.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/49470 Reviewed-by: Kostya Porotchkin <kostap@marvell.com> Reviewed-by: Hanna Hawa <hannah@marvell.com> Tested-by: iSoC Platform CI <ykjenk@marvell.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/marvell/iob.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/marvell/iob.c b/drivers/marvell/iob.c
index a2137dd4..33c2c8dc 100644
--- a/drivers/marvell/iob.c
+++ b/drivers/marvell/iob.c
@@ -38,6 +38,7 @@
#include <mvebu.h>
#include <iob.h>
#include <plat_config.h>
+#include <arch_helpers.h>
#if LOG_LEVEL >= LOG_LEVEL_INFO
#define DEBUG_ADDR_MAP
@@ -150,6 +151,11 @@ void iob_cfg_space_update(int ap_idx, int cp_idx, uintptr_t base, uintptr_t new_
iob_base = new_base + MVEBU_IOB_OFFSET;
+ /* Make sure the address was configured by the CPU before
+ * any possibe access to the CP.
+ */
+ dsb();
+
debug_exit();
}