u-boot-brain/arch
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
..
arm ARM: add SMP support for non-secure switch 2013-10-03 21:28:51 +02:00
avr32 Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
blackfin blackfin: Fix using gd->baudrate before setting its value 2013-07-31 16:56:04 +08:00
m68k Merge branch 'master' of git://git.denx.de/u-boot-i2c 2013-07-24 09:50:24 -04:00
microblaze microblaze: Call spi_init function 2013-08-08 18:58:11 +05:30
mips MIPS: bootm: drop obsolete Qemu specific bootm implementation 2013-08-13 11:58:48 +02:00
nds32 nds32: introduce DMA allocation API 2013-08-09 01:51:11 +08:00
nios2 nios2: fix missing comment terminator from SPDX License commit 2013-09-06 11:03:42 +08:00
openrisc Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
powerpc powerpc/mpc85xx: Fix the I2C bus speed error on p1022 2013-09-09 07:44:27 +02:00
sandbox Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sh Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sparc Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
x86 SPDX-License-Identifier: convert BSD-3-Clause files 2013-08-19 15:45:35 -04:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00