Tegra: memctrl_v2: secure the on-chip TZSRAM memory
authorVarun Wadekar <vwadekar@nvidia.com>
Wed, 30 Dec 2015 23:15:08 +0000 (15:15 -0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 20 Mar 2017 16:13:39 +0000 (09:13 -0700)
commitd48c0c45de29e41bd5d464c75033f1077badea5f
tree3edf0608caec11796338e85fcdfab958d7fba498
parentb67a7c7c47e1272f1dc0d904feddd10f0110bb36
Tegra: memctrl_v2: secure the on-chip TZSRAM memory

This patch programs the Memory controller's control registers
to disable non-secure accesses to the TZRAM. In case these
registers are already programmed by the BL2/BL30, then the
driver just bails out.

Change-Id: Ia1416988050e3d067296373060c717a260499122
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/common/drivers/memctrl/memctrl_v2.c
plat/nvidia/tegra/include/drivers/memctrl_v2.h
plat/nvidia/tegra/include/t186/tegra_def.h