Commit e80eef33 authored by Alex Elder's avatar Alex Elder Committed by Matt Porter

ARM: bcm: use memory accessors for ioremapped area

The pointer used to pass parameters to an "smc" call is produced
through a call to ioremap().  As such, we should be using functions
like writel() to access it.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Reviewed-by: default avatarTim Kryger <tim.kryger@linaro.org>
Reviewed-by: default avatarMarkus Mayer <markus.mayer@linaro.org>
Reviewed-by: default avatarMatt Porter <mporter@linaro.org>
Signed-off-by: default avatarMatt Porter <mporter@linaro.org>
parent 1892bbcd
...@@ -79,11 +79,11 @@ static void __bcm_kona_smc(void *info) ...@@ -79,11 +79,11 @@ static void __bcm_kona_smc(void *info)
/* Check map in the bounce area */ /* Check map in the bounce area */
BUG_ON(!bridge_data.initialized); BUG_ON(!bridge_data.initialized);
/* Copy one 32 bit word into the bounce area */ /* Copy the four 32 bit argument values into the bounce area */
args[0] = data->arg0; writel_relaxed(data->arg0, args++);
args[1] = data->arg1; writel_relaxed(data->arg1, args++);
args[2] = data->arg2; writel_relaxed(data->arg2, args++);
args[3] = data->arg3; writel(data->arg3, args);
/* Flush caches for input data passed to Secure Monitor */ /* Flush caches for input data passed to Secure Monitor */
if (data->service_id != SSAPI_BRCM_START_VC_CORE) if (data->service_id != SSAPI_BRCM_START_VC_CORE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment