]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: shmobile: apmu: Add debug resource reset for secondary CPU boot
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 5 Dec 2016 10:39:38 +0000 (11:39 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 3 Jan 2017 09:50:38 +0000 (10:50 +0100)
commit10f778a97845e8b10af8878af99c9cfe6c31baf9
tree66a68a5aefdad6b2f578d3c127fa876c74a1c68f
parent460d4117a4714f3e9ae600974df03632139728ec
ARM: shmobile: apmu: Add debug resource reset for secondary CPU boot

In debug mode (MD21=1), reset requests derived from power-shutoff to the
AP-system CPU cores must be enabled before the AP-system CPU cores
resume from power-shutoff for the first time. Else resume may fail,
causing the system to hang during boot.

As setting these bits is a no-op in normal mode, there's no need to
check the actual state of MD21 first.

Inspired by CPU-specific patches in the BSP by Hisashi Nakamura
<hisashi.nakamura.ak@renesas.com>.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Hiep Cao Minh <cm-hiep@jinso.co.jp>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/platsmp-apmu.c