* [PATCH 1/2] ARM: EXYNOS: Add secure firmware support for Exynos5420
@ 2014-05-19 11:09 Tushar Behera
2014-05-19 11:09 ` [PATCH] ARM: dts: Add secure firmware support for Arndale-octa Tushar Behera
2014-05-19 11:32 ` [PATCH 1/2] ARM: EXYNOS: Add secure firmware support for Exynos5420 Tomasz Figa
0 siblings, 2 replies; 4+ messages in thread
From: Tushar Behera @ 2014-05-19 11:09 UTC (permalink / raw)
To: linux-samsung-soc; +Cc: kgene.kim, Sachin Kamat
From: Sachin Kamat <sachin.kamat@linaro.org>
Updated secondary boot register offset for Exynos5420 in case of
secure booting.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
---
The patches are based on top of next-20140519. With these two patches applied,
we can get all A15 cores booting up on Arndale-Octa board.
arch/arm/mach-exynos/firmware.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-exynos/firmware.c b/arch/arm/mach-exynos/firmware.c
index 739bdc8..5e0902e 100644
--- a/arch/arm/mach-exynos/firmware.c
+++ b/arch/arm/mach-exynos/firmware.c
@@ -50,7 +50,7 @@ static int exynos_set_cpu_boot_addr(int cpu, unsigned long boot_addr)
boot_reg = sysram_ns_base_addr + 0x1c;
- if (!soc_is_exynos4212())
+ if (!soc_is_exynos4212() && !soc_is_exynos5420())
boot_reg += 4*cpu;
__raw_writel(boot_addr, boot_reg);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] ARM: dts: Add secure firmware support for Arndale-octa
2014-05-19 11:09 [PATCH 1/2] ARM: EXYNOS: Add secure firmware support for Exynos5420 Tushar Behera
@ 2014-05-19 11:09 ` Tushar Behera
2014-05-19 11:32 ` [PATCH 1/2] ARM: EXYNOS: Add secure firmware support for Exynos5420 Tomasz Figa
1 sibling, 0 replies; 4+ messages in thread
From: Tushar Behera @ 2014-05-19 11:09 UTC (permalink / raw)
To: linux-samsung-soc; +Cc: kgene.kim
Arndale-Octa board is always configured to work with trustzone
firmware binary. Added DTS node entry to enable this support.
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
---
arch/arm/boot/dts/exynos5420-arndale-octa.dts | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5420-arndale-octa.dts b/arch/arm/boot/dts/exynos5420-arndale-octa.dts
index 896a2a6..253d101 100644
--- a/arch/arm/boot/dts/exynos5420-arndale-octa.dts
+++ b/arch/arm/boot/dts/exynos5420-arndale-octa.dts
@@ -26,6 +26,11 @@
bootargs = "console=ttySAC3,115200";
};
+ firmware@02073000 {
+ compatible = "samsung,secure-firmware";
+ reg = <0x02073000 0x1000>;
+ };
+
fixed-rate-clocks {
oscclk {
compatible = "samsung,exynos5420-oscclk";
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] ARM: EXYNOS: Add secure firmware support for Exynos5420
2014-05-19 11:09 [PATCH 1/2] ARM: EXYNOS: Add secure firmware support for Exynos5420 Tushar Behera
2014-05-19 11:09 ` [PATCH] ARM: dts: Add secure firmware support for Arndale-octa Tushar Behera
@ 2014-05-19 11:32 ` Tomasz Figa
2014-05-19 12:10 ` Tushar Behera
1 sibling, 1 reply; 4+ messages in thread
From: Tomasz Figa @ 2014-05-19 11:32 UTC (permalink / raw)
To: Tushar Behera, linux-samsung-soc; +Cc: kgene.kim, Sachin Kamat
Hi Tushar, Sachin,
On 19.05.2014 13:09, Tushar Behera wrote:
> From: Sachin Kamat <sachin.kamat@linaro.org>
>
> Updated secondary boot register offset for Exynos5420 in case of
> secure booting.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> ---
>
> The patches are based on top of next-20140519. With these two patches applied,
> we can get all A15 cores booting up on Arndale-Octa board.
>
> arch/arm/mach-exynos/firmware.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-exynos/firmware.c b/arch/arm/mach-exynos/firmware.c
> index 739bdc8..5e0902e 100644
> --- a/arch/arm/mach-exynos/firmware.c
> +++ b/arch/arm/mach-exynos/firmware.c
> @@ -50,7 +50,7 @@ static int exynos_set_cpu_boot_addr(int cpu, unsigned long boot_addr)
>
> boot_reg = sysram_ns_base_addr + 0x1c;
>
> - if (!soc_is_exynos4212())
> + if (!soc_is_exynos4212() && !soc_is_exynos5420())
> boot_reg += 4*cpu;
I think it is safe to change this simply to if (soc_is_exynos4412()),
since this seems to be the only SoC on which the firmware requires this
offset.
Best regards,
Tomasz
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] ARM: EXYNOS: Add secure firmware support for Exynos5420
2014-05-19 11:32 ` [PATCH 1/2] ARM: EXYNOS: Add secure firmware support for Exynos5420 Tomasz Figa
@ 2014-05-19 12:10 ` Tushar Behera
0 siblings, 0 replies; 4+ messages in thread
From: Tushar Behera @ 2014-05-19 12:10 UTC (permalink / raw)
To: Tomasz Figa, linux-samsung-soc; +Cc: kgene.kim, Sachin Kamat
On 05/19/2014 05:02 PM, Tomasz Figa wrote:
> Hi Tushar, Sachin,
>
> On 19.05.2014 13:09, Tushar Behera wrote:
>> From: Sachin Kamat <sachin.kamat@linaro.org>
>>
>> Updated secondary boot register offset for Exynos5420 in case of
>> secure booting.
>>
>> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
>> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
>> ---
>>
>> The patches are based on top of next-20140519. With these two patches applied,
>> we can get all A15 cores booting up on Arndale-Octa board.
>>
>> arch/arm/mach-exynos/firmware.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/mach-exynos/firmware.c b/arch/arm/mach-exynos/firmware.c
>> index 739bdc8..5e0902e 100644
>> --- a/arch/arm/mach-exynos/firmware.c
>> +++ b/arch/arm/mach-exynos/firmware.c
>> @@ -50,7 +50,7 @@ static int exynos_set_cpu_boot_addr(int cpu, unsigned long boot_addr)
>>
>> boot_reg = sysram_ns_base_addr + 0x1c;
>>
>> - if (!soc_is_exynos4212())
>> + if (!soc_is_exynos4212() && !soc_is_exynos5420())
>> boot_reg += 4*cpu;
>
> I think it is safe to change this simply to if (soc_is_exynos4412()),
> since this seems to be the only SoC on which the firmware requires this
> offset.
>
> Best regards,
> Tomasz
>
Fair enough. Even Exynos3250 doesn't require this. I will resend this patch.
--
Tushar Behera
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-19 12:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-19 11:09 [PATCH 1/2] ARM: EXYNOS: Add secure firmware support for Exynos5420 Tushar Behera
2014-05-19 11:09 ` [PATCH] ARM: dts: Add secure firmware support for Arndale-octa Tushar Behera
2014-05-19 11:32 ` [PATCH 1/2] ARM: EXYNOS: Add secure firmware support for Exynos5420 Tomasz Figa
2014-05-19 12:10 ` Tushar Behera
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.