From cc50ed20512a5393e00c0a1a674817bd3e2d594e Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sat, 6 Jan 2024 22:09:18 +0200 Subject: [PATCH] l4t: remove redundant wpr cfg It's now done in dram cfg. --- bootloader/l4t/l4t.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/bootloader/l4t/l4t.c b/bootloader/l4t/l4t.c index f83fc82..f21ea5d 100644 --- a/bootloader/l4t/l4t.c +++ b/bootloader/l4t/l4t.c @@ -362,8 +362,6 @@ static void _l4t_sdram_lp0_save_params(bool t210b01) } else { s(MC_VIDEO_PROTECT_REG_CTRL, 1:0, secure_scratch14, 31:30); } - s32(MC_VIDEO_PROTECT_GPU_OVERRIDE_0, secure_scratch12); - s(MC_VIDEO_PROTECT_GPU_OVERRIDE_1, 15:0, secure_scratch49, 15:0); // TZD. s(MC_SEC_CARVEOUT_BOM, 31:20, secure_scratch53, 23:12); @@ -471,14 +469,6 @@ static void _l4t_mc_config_carveout(bool t210b01) // Disabled VPR carveout. DT decides if enabled or not. MC(MC_VIDEO_PROTECT_BOM) = 0xFFF00000; MC(MC_VIDEO_PROTECT_SIZE_MB) = 0; - if (!t210b01) - { - // For T210 force the following values for Falcon to configure WPR access. - // For T210B01 use default, already set from dram config. - // HOS forces 1 and 0. - MC(MC_VIDEO_PROTECT_GPU_OVERRIDE_0) = 0x2A800000; - MC(MC_VIDEO_PROTECT_GPU_OVERRIDE_1) = 2; - } MC(MC_VIDEO_PROTECT_REG_CTRL) = VPR_CTRL_TZ_SECURE | VPR_CTRL_LOCKED; // Temporarily disable TZDRAM carveout. For launching coldboot TZ.