gpu: nvgpu: Exclude non-secure boot with CONFIG_TEGRA_ACR

Do not compile non-secure boot code if CONFIG_TEGRA_ACR is defined.

Bug 1524197

Change-Id: Id1ec222e00e2229e1d28e406e4ddad99e368296e
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/433356
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
This commit is contained in:
Seshendra Gadagottu
2014-07-01 16:49:46 -07:00
committed by Dan Willemsen
parent 2d666411ab
commit f554ab3046

View File

@@ -30,9 +30,11 @@ static void gr_gm20b_init_gpc_mmu(struct gk20a *g)
gk20a_dbg_info("initialize gpc mmu");
#ifndef CONFIG_TEGRA_ACR
/* Bypass MMU check for non-secure boot. For
* secure-boot,this register write has no-effect */
gk20a_writel(g, fb_priv_mmu_phy_secure_r(), 0xffffffff);
#endif
temp = gk20a_readl(g, fb_mmu_ctrl_r());
temp &= gr_gpcs_pri_mmu_ctrl_vm_pg_size_m() |