u-boot/arch/arm/cpu
Andre Przywara ba6a169811 ARM: add SMP support for non-secure switch
Currently the non-secure switch is only done for the boot processor.
To enable full SMP support, we have to switch all secondary cores
into non-secure state also.

So we add an entry point for secondary CPUs coming out of low-power
state and make sure we put them into WFI again after having switched
to non-secure state.
For this we acknowledge and EOI the wake-up IPI, then go into WFI.
Once being kicked out of it later, we sanity check that the start
address has actually been changed (since another attempt to switch
to non-secure would block the core) and jump to the new address.

The actual CPU kick is done by sending an inter-processor interrupt
via the GIC to all CPU interfaces except the requesting processor.
The secondary cores will then setup their respective GIC CPU
interface.
While this approach is pretty universal across several ARMv7 boards,
we make this function weak in case someone needs to tweak this for
a specific board.

The way of setting the secondary's start address is board specific,
but mostly different only in the actual SMP pen address, so we also
provide a weak default implementation and just depend on the proper
address to be set in the config file.

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
2013-10-03 21:28:51 +02:00
..
arm720t ARM: refactor compiler options in config.mk 2013-09-23 17:03:05 +02:00
arm920t ARM: refactor compiler options in config.mk 2013-09-23 17:03:05 +02:00
arm925t ARM: refactor compiler options in config.mk 2013-09-23 17:03:05 +02:00
arm926ejs Merge branch 'u-boot-imx/master' into 'u-boot-arm/master' 2013-10-02 14:53:27 +02:00
arm946es ARM: refactor compiler options in config.mk 2013-09-23 17:03:05 +02:00
arm1136 ARM: refactor compiler options in config.mk 2013-09-23 17:03:05 +02:00
arm1176 ARM: refactor compiler options in config.mk 2013-09-23 17:03:05 +02:00
arm_intcm ARM: refactor compiler options in config.mk 2013-09-23 17:03:05 +02:00
armv7 ARM: add SMP support for non-secure switch 2013-10-03 21:28:51 +02:00
ixp ARM: refactor compiler options in config.mk 2013-09-23 17:03:05 +02:00
pxa ARM: refactor compiler options in config.mk 2013-09-23 17:03:05 +02:00
sa1100 ARM: refactor compiler options in config.mk 2013-09-23 17:03:05 +02:00
tegra-common Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
tegra20-common Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
tegra30-common Tegra114: Initialize System Counter (TSC) with osc frequency 2013-04-15 11:01:38 -07:00
tegra114-common Tegra114: Initialize System Counter (TSC) with osc frequency 2013-04-15 11:01:38 -07:00
u-boot-spl.lds Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
u-boot.lds arm: lds: Remove libgcc eabi exception handling tables 2013-09-05 13:41:42 +02:00