Tegra: memctrl_v2: config to enable SMMU device
This patch adds a config to the memory controller driver to enable SMMU device init during boot. Tegra186 platforms keeps it enabled by default, but future platforms might not support it. Change-Id: Iebe1c60a25fc1cfb4c97a507e121d6685a49cb83 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
This commit is contained in:
parent
691bc22de9
commit
16c7cd01b2
|
@ -511,8 +511,10 @@ void tegra_memctrl_setup(void)
|
|||
|
||||
INFO("Tegra Memory Controller (v2)\n");
|
||||
|
||||
#if ENABLE_SMMU_DEVICE
|
||||
/* Program the SMMU pagesize */
|
||||
tegra_smmu_init();
|
||||
#endif
|
||||
|
||||
/* Program all the Stream ID overrides */
|
||||
for (i = 0; i < num_overrides; i++)
|
||||
|
|
|
@ -104,8 +104,10 @@ static const mmap_region_t tegra_mmap[] = {
|
|||
MT_DEVICE | MT_RW | MT_SECURE),
|
||||
MAP_REGION_FLAT(TEGRA_ARM_ACTMON_CTR_BASE, 0x20000, /* 128KB - ARM/Denver */
|
||||
MT_DEVICE | MT_RW | MT_SECURE),
|
||||
#if ENABLE_SMMU_DEVICE
|
||||
MAP_REGION_FLAT(TEGRA_SMMU_BASE, 0x1000000, /* 64KB */
|
||||
MT_DEVICE | MT_RW | MT_SECURE),
|
||||
#endif
|
||||
{0}
|
||||
};
|
||||
|
||||
|
|
|
@ -41,6 +41,9 @@ $(eval $(call add_define,RELOCATE_TO_BL31_BASE))
|
|||
ENABLE_CHIP_VERIFICATION_HARNESS := 0
|
||||
$(eval $(call add_define,ENABLE_CHIP_VERIFICATION_HARNESS))
|
||||
|
||||
ENABLE_SMMU_DEVICE := 1
|
||||
$(eval $(call add_define,ENABLE_SMMU_DEVICE))
|
||||
|
||||
RESET_TO_BL31 := 1
|
||||
|
||||
PROGRAMMABLE_RESET_ADDRESS := 1
|
||||
|
|
Loading…
Reference in New Issue