uboot/arch/arm/include/asm
Andre Przywara 1ef923851a ARM: add C function to switch to non-secure state
The core specific part of the work is done in the assembly routine
in nonsec_virt.S, introduced with the previous patch, but for the full
glory we need to setup the GIC distributor interface once for the
whole system, which is done in C here.
The routine is placed in arch/arm/cpu/armv7 to allow easy access from
other ARMv7 boards.

We check the availability of the security extensions first.

Since we need a safe way to access the GIC, we use the PERIPHBASE
registers on Cortex-A15 and A7 CPUs and do some sanity checks.
Boards not implementing the CBAR can override this value via a
configuration file variable.

Then we actually do the GIC enablement:
a) enable the GIC distributor, both for non-secure and secure state
   (GICD_CTLR[1:0] = 11b)
b) allow all interrupts to be handled from non-secure state
   (GICD_IGROUPRn = 0xFFFFFFFF)

The core specific GIC setup is then done in the assembly routine.

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
2013-10-03 21:28:43 +02:00
..
arch-a320
arch-am33xx am335x:Handle worst case scenario for Errata 1.0.24 2013-09-20 16:57:40 -04:00
arch-arm720t
arch-armada100
arch-armv7
arch-at91 arm: sama5d3: fix smc cs related registers offset 2013-08-22 16:50:58 +02:00
arch-bcm2835
arch-davinci
arch-ep93xx
arch-exynos Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master' 2013-09-11 09:59:27 +02:00
arch-imx
arch-ixp
arch-kirkwood
arch-ks8695
arch-lpc32xx
arch-mb86r0x
arch-mx5 usb: ehci-mx5: Use 'bool' instead of 'unsigned char' 2013-08-26 21:56:34 +02:00
arch-mx6 i.MX6DQ/DLS: Add pad MX6_PAD_GPIO_1__USB_OTG_ID 2013-09-27 13:53:35 +02:00
arch-mx25
arch-mx27 mx27: add missing constant for mx27 2013-09-10 19:12:55 +02:00
arch-mx31
arch-mx35
arch-mxs ARM: mxs: Receive r0 and r1 passed from BootROM 2013-09-10 19:12:54 +02:00
arch-nomadik
arch-omap3 Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' 2013-09-04 14:06:56 +02:00
arch-omap4 Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' 2013-09-04 14:06:56 +02:00
arch-omap5 Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' 2013-09-04 14:06:56 +02:00
arch-orion5x
arch-pantheon
arch-pxa
arch-rmobile
arch-s3c24x0
arch-s5pc1xx arm:mmc:goni/exynos: Fix wrong mmc base register devices offset. 2013-09-11 10:52:10 +09:00
arch-sa1100
arch-socfpga socfpga: Creating driver for Reset Manager 2013-09-06 12:09:06 +02:00
arch-spear
arch-tegra
arch-tegra20
arch-tegra30
arch-tegra114
arch-tnetv107x
arch-u8500
arch-vf610
arch-zynq Merge 'u-boot-microblaze/zynq' into (u-boot-arm/master' 2013-09-03 14:01:02 +02:00
imx-common
proc-armv
armv7.h ARM: add C function to switch to non-secure state 2013-10-03 21:28:43 +02:00
assembler.h
atomic.h
bitops.h
bootm.h
byteorder.h
cache.h
config.h
dma-mapping.h arm: dma_alloc_coherent: malloc() -> memalign() 2013-09-14 12:08:00 +02:00
ehci-omap.h ARM: OMAP5: USB: Add OMAP5 common USB EHCI information 2013-08-26 21:55:46 +02:00
emif.h
errno.h
gic.h ARM: add assembly routine to switch to non-secure state 2013-10-03 21:28:25 +02:00
global_data.h ARM: use r9 for gd 2013-09-23 18:00:02 +02:00
gpio.h
hardware.h
io.h
linkage.h
mach-types.h
macro.h
memory.h
omap_boot.h
omap_common.h ARM: OMAP5: Avoid writing into LDO SRAM bits 2013-09-20 16:57:40 -04:00
omap_gpio.h SPDX-License-Identifier: fixing some problematic GPL-2.0 files 2013-08-19 15:34:13 -04:00
omap_gpmc.h
omap_mmc.h
omap_musb.h
pl310.h
posix_types.h
processor.h
ptrace.h
sections.h
setup.h
sizes.h
spl.h
string.h
system.h
types.h
u-boot-arm.h
u-boot.h
unaligned.h
utils.h