From a00f25d2f9f9c69cea150f99ceb5bfe75a40f3e2 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Thu, 30 Apr 2020 03:31:42 +0300 Subject: [PATCH] l4t: Clear payload mode from scratch0 reg --- bootloader/soc/hw_init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootloader/soc/hw_init.c b/bootloader/soc/hw_init.c index c14c6f6..f5df093 100644 --- a/bootloader/soc/hw_init.c +++ b/bootloader/soc/hw_init.c @@ -319,6 +319,9 @@ void config_hw() sdram_init(); bpmp_mmu_enable(); + + // Clear flags from PMC_SCRATCH0 + PMC(APBDEV_PMC_SCRATCH0) &= ~PMC_SCRATCH0_MODE_PAYLOAD; } void reconfig_hw_workaround(bool extra_reconfig, u32 magic)