u-boot-brain/arch/arm
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
..
cpu tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0 2015-05-13 09:24:15 -07:00
dts tegra: dts: nyan-big: Add definitions for eDP display 2015-05-13 09:24:11 -07:00
imx-common ARM: vf610: Move DDR3 initialization to imx-common 2015-04-23 14:56:08 -04:00
include tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0 2015-05-13 09:24:15 -07:00
lib virt-dt: Allow reservation of secure region when in a RAM carveout 2015-05-13 09:24:14 -07:00
mach-at91 arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
mach-bcm283x arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
mach-davinci arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
mach-highbank ARM: highbank: move SoC sources to mach-highbank 2015-02-21 08:23:51 -05:00
mach-integrator arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
mach-keystone arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
mach-kirkwood arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
mach-mvebu arm: mvebu: Remove "u-boot.kwb" CONFIG_BUILD_TARGET for non-SPL targets 2015-05-05 14:32:05 +02:00
mach-nomadik arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
mach-orion5x arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
mach-socfpga arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
mach-tegra tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0 2015-05-13 09:24:15 -07:00
mach-uniphier arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
mach-versatile ARM: versatile: move SoC sources to mach-versatile 2015-02-21 08:23:51 -05:00
mach-zynq arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
mvebu-common arm: mvebu: Move mvebu-common into mach-mvebu 2015-05-05 14:28:29 +02:00
config.mk generic-board: move __HAVE_ARCH_GENERIC_BOARD to Kconfig 2015-03-28 09:03:08 -04:00
Kconfig arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
Kconfig.debug arm: debug: add Kconfig entries for lowlevel debug 2014-10-26 22:23:12 +01:00
Makefile ARM: socfpga: move SoC sources to mach-socfpga 2015-05-07 05:21:12 +02:00