mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
[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. (cherry picked from commit 10ba1ec8b021fda08d0342e19d86c1f319b0366d) Signed-off-by: Humberto Silva Naves <hsnaves@gmail.com>
This commit is contained in:
@@ -556,5 +556,10 @@
|
||||
"sclk_audio0", "mout_audss", "mout_i2s";
|
||||
};
|
||||
|
||||
firmware@02073000 {
|
||||
compatible = "samsung,secure-firmware";
|
||||
reg = <0x02073000 0x1000>;
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
|
||||
@@ -37,7 +37,12 @@ static int exynos_set_cpu_boot_addr(int cpu, unsigned long boot_addr)
|
||||
{
|
||||
void __iomem *boot_reg = S5P_VA_SYSRAM_NS + 0x1c;
|
||||
|
||||
if (!soc_is_exynos5420())
|
||||
/*
|
||||
* 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;
|
||||
|
||||
writel_relaxed(boot_addr, boot_reg);
|
||||
|
||||
Reference in New Issue
Block a user