u-boot-brain/arch/arm/cpu/armv7
Ian Campbell 73169874a2 tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0
These registers can be used to prevent non-secure world from accessing a
megabyte aligned region of RAM, use them to protect the u-boot secure monitor
code.

At first I tried to do this from s_init(), however this inexplicably causes
u-boot's networking (e.g. DHCP) to fail, while networking under Linux was fine.

So instead I have added a new weak arch function protect_secure_section()
called from relocate_secure_section() and reserved the region there. This is
better overall since it defers the reservation until after the sec vs. non-sec
decision (which can be influenced by an envvar) has been made when booting the
os.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
[Jan: tiny style adjustment]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Tested-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Tom Warren <twarren@nvidia.com>
2015-05-13 09:24:15 -07:00
..
am33xx ARM: AM43xx: Enable clocks for USB OTGSS and USB PHY 2015-04-14 05:48:08 +02:00
bcm281xx bcm281xx: add support for "USB OTG clock" 2014-12-29 16:31:23 -05:00
bcmcygnus arm: bcmcygnus: Add bcmcygnus u-architecture 2014-08-30 07:46:40 -04:00
bcmnsp arm: bcmnsp: Add bcmnsp u-architecture 2014-08-30 07:46:40 -04:00
exynos arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
iproc-common arm: iproc: Initial commit of iproc architecture code 2014-08-30 07:46:40 -04:00
kona-common bcm281xx: add support for "USB OTG clock" 2014-12-29 16:31:23 -05:00
ls102xa ARM: Clean up CONFIG_ARMV7_NONSEC/VIRT/PSCI conditions 2015-05-13 09:24:13 -07:00
mx5 arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
mx6 arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
omap3 arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
omap4 arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
omap5 arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
omap-common fastboot: ARM: OMAP5: Enable reboot-bootloader 2015-04-23 14:55:44 -04:00
rmobile arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
s5p-common armv7: convert makefiles to Kbuild style 2013-10-31 12:53:39 -04:00
s5pc1xx arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
stv0991 stv0991: enable ethernet support 2014-12-09 15:16:19 -05:00
sunxi ARM: Put target PC for PSCI CPU_ON on per-CPU stack 2015-05-13 09:24:14 -07:00
u8500 armv7: convert makefiles to Kbuild style 2013-10-31 12:53:39 -04:00
vf610 ARM: vf610: Enable caches 2015-04-23 14:56:09 -04:00
arch_timer.c arm: add support for arch timer 2014-04-17 17:24:38 -04:00
cache_v7.c ARM: cpu: Add ARMv7 barrier operations support 2015-04-16 13:53:26 +02:00
config.mk ARM: move -march=* and -mtune= options to arch/arm/Makefile 2015-03-27 16:55:22 +01:00
cp15.c ARM: Introduce erratum workaround for 454179 2015-03-13 09:28:48 -04:00
cpu.c ARM: armv7 fix spelling of SCTRL 2015-01-30 09:19:17 -05:00
Kconfig ARM: bootm: Allow booting in secure mode on hyp capable systems 2014-11-24 09:09:52 +01:00
lowlevel_init.S arm: Reduce the scope of lowlevel_init() 2015-03-04 14:55:04 -05:00
Makefile ARM: Clean up CONFIG_ARMV7_NONSEC/VIRT/PSCI conditions 2015-05-13 09:24:13 -07:00
nonsec_virt.S ARM: HYP/non-sec: Fix the ARCH Timer frequency setting. 2014-12-11 09:41:45 -08:00
psci.S ARM: Put target PC for PSCI CPU_ON on per-CPU stack 2015-05-13 09:24:14 -07:00
start.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
syslib.c ARM: OMAP: hide custom bit manipulation function sr32() 2014-04-17 14:39:54 -04:00
virt-dt.c virt-dt: Allow reservation of secure region when in a RAM carveout 2015-05-13 09:24:14 -07:00
virt-v7.c tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0 2015-05-13 09:24:15 -07:00