Skip to content

Commit 10ba1ec

Browse files
committed
[PATCH] ARM: EXYNOS: Update secondary boot addr for secure mode
(adapted from Sachin Kamat's patch) 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.
1 parent 63b4cdc commit 10ba1ec

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

arch/arm/boot/dts/exynos5410-odroidxu.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,5 +556,10 @@
556556
"sclk_audio0", "mout_audss", "mout_i2s";
557557
};
558558

559+
firmware@02073000 {
560+
compatible = "samsung,secure-firmware";
561+
reg = <0x02073000 0x1000>;
562+
};
563+
559564

560565
};

arch/arm/mach-exynos/firmware.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ static int exynos_set_cpu_boot_addr(int cpu, unsigned long boot_addr)
3737
{
3838
void __iomem *boot_reg = S5P_VA_SYSRAM_NS + 0x1c;
3939

40-
if (!soc_is_exynos5420())
40+
/*
41+
* Almost all Exynos-series of SoCs that run in secure mode don't need
42+
* additional offset for every CPU, with Exynos4412 being the only
43+
* exception.
44+
*/
45+
if (soc_is_exynos4412())
4146
boot_reg += 4 * cpu;
4247

4348
writel_relaxed(boot_addr, boot_reg);

0 commit comments

Comments
 (0)