u-boot-brain/arch/arm/mach-tegra
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
..
tegra20 tegra: Move display controller header into common 2015-05-13 09:24:10 -07:00
tegra30 arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
tegra114 arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
tegra124 tegra124: Add PSCI support for Tegra124 2015-05-13 09:24:15 -07:00
tegra210 ARM: tegra: pinctrl: move Tegra210 code to the correct dir 2015-03-30 09:54:06 -07:00
ap.c tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0 2015-05-13 09:24:15 -07:00
board.c tegra: Move checkboard() into the board code 2015-05-13 09:24:07 -07:00
cache.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
clock.c tegra124: clock: Add display clocks and functions 2015-05-13 09:24:09 -07:00
cmd_enterrcm.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
cpu.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
cpu.h ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
Kconfig arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
lowlevel_init.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
Makefile tegra124: Add PSCI support for Tegra124 2015-05-13 09:24:15 -07:00
pinmux-common.c ARM: tegra: pinctrl: add support for MIPI PAD control groups 2015-03-30 09:54:06 -07:00
powergate.c tegra: Make tegra_powergate_power_on public 2015-05-13 09:24:15 -07:00
psci.S tegra124: Add PSCI support for Tegra124 2015-05-13 09:24:15 -07:00
pwm.c tegra: pwm: Allow the clock rate to be left as is 2015-05-13 09:24:07 -07:00
spl.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
sys_info.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
vpr.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
xusb-padctl.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00