[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:
Humberto Silva Naves
2014-07-02 14:21:22 +02:00
parent 2b65e59734
commit 9fed435a01
2 changed files with 11 additions and 1 deletions

View File

@@ -556,5 +556,10 @@
"sclk_audio0", "mout_audss", "mout_i2s";
};
firmware@02073000 {
compatible = "samsung,secure-firmware";
reg = <0x02073000 0x1000>;
};
};

View File

@@ -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);