Skip to content

Commit

Permalink
[PATCH] ARM: EXYNOS: Update secondary boot addr for secure mode
Browse files Browse the repository at this point in the history
(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.
  • Loading branch information
hsnaves committed Jul 2, 2014
1 parent 63b4cdc commit 10ba1ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/exynos5410-odroidxu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -556,5 +556,10 @@
"sclk_audio0", "mout_audss", "mout_i2s";
};

firmware@02073000 {
compatible = "samsung,secure-firmware";
reg = <0x02073000 0x1000>;
};


};
7 changes: 6 additions & 1 deletion arch/arm/mach-exynos/firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 10ba1ec

Please sign in to comment.