]> git.baikalelectronics.ru Git - arm-tf.git/commit
Tegra: memctrl_v1: disable AHB redirection after cold boot
authorVarun Wadekar <vwadekar@nvidia.com>
Wed, 29 Mar 2017 21:57:29 +0000 (14:57 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 13 Apr 2017 21:16:25 +0000 (14:16 -0700)
commit0c2276e35fbbe4b047cae6e1c02fe93b5b75bc3e
treeb0ea517ed2dd9af8b49d29279f0ee03c2c8f7b53
parentcd3de4326b8a7d7f905c2ced4081ea2e7d243e0c
Tegra: memctrl_v1: disable AHB redirection after cold boot

During boot, USB3 and flash media (SDMMC/SATA) devices need access to
IRAM. Because these clients connect to the MC and do not have a direct
path to the IRAM, the MC implements AHB redirection during boot to allow
path to IRAM. In this mode, accesses to a programmed memory address aperture
are directed to the AHB bus, allowing access to the IRAM. The AHB aperture
is defined by the IRAM_BASE_LO and IRAM_BASE_HI registers, which are
initialized to disable this aperture. Once bootup is complete, we must
program IRAM base/top, thus disabling access to IRAM.

This patch provides functionality to disable this access. The tegra port
calls this new function before jumping to the non-secure world during
cold boot.

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/common/drivers/memctrl/memctrl_v1.c
plat/nvidia/tegra/common/drivers/memctrl/memctrl_v2.c
plat/nvidia/tegra/common/tegra_bl31_setup.c
plat/nvidia/tegra/include/drivers/memctrl.h
plat/nvidia/tegra/include/drivers/memctrl_v1.h