All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 Resend 1/2] ARM: EXYNOS: Update secondary boot addr for secure mode
@ 2014-05-28  4:13 ` Sachin Kamat
  0 siblings, 0 replies; 24+ messages in thread
From: Sachin Kamat @ 2014-05-28  4:13 UTC (permalink / raw)
  To: linux-samsung-soc
  Cc: linux-arm-kernel, kgene.kim, tushar.behera, sachin.kamat, tomasz.figa

Almost all Exynos-series of SoCs that run in secure mode don't need
additional offset for every CPU, with Exynos4412 being the only
exception.

Tested on Origen-Quad (Exynos4412) and Arndale-Octa (Exynos5420).

While at it, fix the coding style (space around *).

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
---
 arch/arm/mach-exynos/firmware.c |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-exynos/firmware.c b/arch/arm/mach-exynos/firmware.c
index eb91d2350f8c..e8797bb78871 100644
--- a/arch/arm/mach-exynos/firmware.c
+++ b/arch/arm/mach-exynos/firmware.c
@@ -57,8 +57,13 @@ static int exynos_set_cpu_boot_addr(int cpu, unsigned long boot_addr)
 
 	boot_reg = sysram_ns_base_addr + 0x1c;
 
-	if (!soc_is_exynos4212() && !soc_is_exynos3250())
-		boot_reg += 4*cpu;
+	/*
+	 * Almost all Exynos-series of SoCs that run in secure mode don't need
+	 * additional offset for every CPU, with Exynos4412 being the only
+	 * exception.
+	 */
+	if (soc_is_exynos4412())
+		boot_reg += 4 * cpu;
 
 	__raw_writel(boot_addr, boot_reg);
 	return 0;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2014-07-05 14:53 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-28  4:13 [PATCH v2 Resend 1/2] ARM: EXYNOS: Update secondary boot addr for secure mode Sachin Kamat
2014-05-28  4:13 ` Sachin Kamat
2014-05-28  4:13 ` [PATCH v2 Resend 2/2] ARM: dts: Add secure firmware support for Arndale-octa Sachin Kamat
2014-05-28  4:13   ` Sachin Kamat
2014-05-30 18:20   ` Kukjin Kim
2014-05-30 18:20     ` Kukjin Kim
2014-05-30 18:19 ` [PATCH v2 Resend 1/2] ARM: EXYNOS: Update secondary boot addr for secure mode Andreas Färber
2014-05-30 18:19   ` Andreas Färber
2014-05-30 18:42   ` Kukjin Kim
2014-05-30 18:42     ` Kukjin Kim
2014-05-30 18:47     ` Tomasz Figa
2014-05-30 18:47       ` Tomasz Figa
2014-06-25 10:47       ` Tushar Behera
2014-06-25 10:47         ` Tushar Behera
2014-06-13 16:25     ` Sachin Kamat
2014-06-13 16:25       ` Sachin Kamat
2014-06-23  4:33   ` Sachin Kamat
2014-06-23  4:33     ` Sachin Kamat
2014-06-25 11:43     ` Kukjin Kim
2014-06-25 11:43       ` Kukjin Kim
2014-06-25 11:54       ` Andreas Färber
2014-06-25 11:54         ` Andreas Färber
2014-07-05 14:53       ` Sachin Kamat
2014-07-05 14:53         ` Sachin Kamat

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.