public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] arm: mach-k3: am625: Unlock MMR registers again
@ 2025-08-15 16:02 Daniel Schultz
  2025-08-21 16:21 ` Sverdlin, Alexander
  2026-01-12  7:31 ` Sverdlin, Alexander
  0 siblings, 2 replies; 12+ messages in thread
From: Daniel Schultz @ 2025-08-15 16:02 UTC (permalink / raw)
  To: trini, kishon, alexander.sverdlin, s-vadapalli, c-vankar, bb,
	u-boot
  Cc: upstream, Daniel Schultz

The watchdog requires to have the MCU ESM error source enabled to
trigger a system reboot. When booting HS-SE (security enforced)
devices, the MMR registers are locked again and all write commands
are simply ignored.

Unlock the MMR registers again to successfully enable the MCU ESM
source.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
---
 arch/arm/mach-k3/am62x/am625_init.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/mach-k3/am62x/am625_init.c b/arch/arm/mach-k3/am62x/am625_init.c
index a422919fab1..498bbe45b38 100644
--- a/arch/arm/mach-k3/am62x/am625_init.c
+++ b/arch/arm/mach-k3/am62x/am625_init.c
@@ -84,6 +84,9 @@ static void ctrl_mmr_unlock(void)
 
 static __maybe_unused void enable_mcu_esm_reset(void)
 {
+	/* CTRLMMR_MCU_RST registers are locked again on HS-SE devices */
+	mmr_unlock(MCU_CTRL_MMR0_BASE, 6);
+
 	/* Set CTRLMMR_MCU_RST_CTRL:MCU_ESM_ERROR_RST_EN_Z  to '0' (low active) */
 	u32 stat = readl(CTRLMMR_MCU_RST_CTRL);
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-01-13  3:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-15 16:02 [PATCH] arm: mach-k3: am625: Unlock MMR registers again Daniel Schultz
2025-08-21 16:21 ` Sverdlin, Alexander
2025-09-10 11:50   ` Daniel Schultz
2025-09-10 12:08     ` bb
2025-09-10 12:27       ` Sverdlin, Alexander
2025-09-10 12:53         ` bb
2025-09-10 13:01           ` Sverdlin, Alexander
2025-09-10 13:26             ` bb
2025-09-10 14:06               ` Daniel Schultz
2026-01-12  3:04                 ` [Upstream] " Wadim Egorov
2026-01-13  3:02                   ` bb
2026-01-12  7:31 ` Sverdlin, Alexander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox