aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcm
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2014-04-21 17:53:02 -0400
committerMatt Porter <mporter@linaro.org>2014-04-25 08:51:31 -0400
commite80eef33f4596a247fdcf7d67d54d95d9dfaf7d3 (patch)
tree063a27eae94039297c37348ff4ac5b49a9673700 /arch/arm/mach-bcm
parent1892bbcdd41b5e2582000ab21e9f6b734d005a71 (diff)
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: Alex Elder <elder@linaro.org> Reviewed-by: Tim Kryger <tim.kryger@linaro.org> Reviewed-by: Markus Mayer <markus.mayer@linaro.org> Reviewed-by: Matt Porter <mporter@linaro.org> Signed-off-by: Matt Porter <mporter@linaro.org>
Diffstat (limited to 'arch/arm/mach-bcm')
-rw-r--r--arch/arm/mach-bcm/bcm_kona_smc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-bcm/bcm_kona_smc.c b/arch/arm/mach-bcm/bcm_kona_smc.c
index 5e31e918f325..d881c72ee878 100644
--- a/arch/arm/mach-bcm/bcm_kona_smc.c
+++ b/arch/arm/mach-bcm/bcm_kona_smc.c
@@ -79,11 +79,11 @@ static void __bcm_kona_smc(void *info)
79 /* Check map in the bounce area */ 79 /* Check map in the bounce area */
80 BUG_ON(!bridge_data.initialized); 80 BUG_ON(!bridge_data.initialized);
81 81
82 /* Copy one 32 bit word into the bounce area */ 82 /* Copy the four 32 bit argument values into the bounce area */
83 args[0] = data->arg0; 83 writel_relaxed(data->arg0, args++);
84 args[1] = data->arg1; 84 writel_relaxed(data->arg1, args++);
85 args[2] = data->arg2; 85 writel_relaxed(data->arg2, args++);
86 args[3] = data->arg3; 86 writel(data->arg3, args);
87 87
88 /* Flush caches for input data passed to Secure Monitor */ 88 /* Flush caches for input data passed to Secure Monitor */
89 if (data->service_id != SSAPI_BRCM_START_VC_CORE) 89 if (data->service_id != SSAPI_BRCM_START_VC_CORE)