Skip to contentSkip to conversation

arch: arm: mach-k3: am642_init: bring back MCU_PADCFG_MMR1 unlock

PATCH In review Christian Gmeiner 3 participants 3 messages May 12, 2022 – Jun 17, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch: arm: mach-k3: am642_init: bring back MCU_PADCFG_MMR1 unlock

Without this register unlock it is not possible to configure the pinmux used for mcu spi0.

Fixes 92e46092f2 ("arch: arm: mach-k3: am642_init: Probe ESM nodes")
---
 arch/arm/mach-k3/am642_init.c | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/mach-k3/am642_init.c +3 -0
index add7ea8377..b16de9c9f0 100644
@@ -47,6 +47,9 @@ static void ctrl_mmr_unlock(void)
 	mmr_unlock(CTRL_MMR0_BASE, 3);
 	mmr_unlock(CTRL_MMR0_BASE, 5);
 	mmr_unlock(CTRL_MMR0_BASE, 6);
+
+	/* Unlock all MCU_PADCFG_MMR1 module registers */
+	mmr_unlock(MCU_PADCFG_MMR1_BASE, 1);
 }
 
 /*
Signature · 1 line
2.36.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 26 lines · Christian Gmeiner

Without this register unlock it is not possible to configure the pinmux used for mcu spi0.

Fixes 92e46092f2 ("arch: arm: mach-k3: am642_init: Probe ESM nodes")
---
 arch/arm/mach-k3/am642_init.c | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/mach-k3/am642_init.c +3 -0
index add7ea8377..b16de9c9f0 100644
@@ -47,6 +47,9 @@ static void ctrl_mmr_unlock(void)
 	mmr_unlock(CTRL_MMR0_BASE, 3);
 	mmr_unlock(CTRL_MMR0_BASE, 5);
 	mmr_unlock(CTRL_MMR0_BASE, 6);
+
+	/* Unlock all MCU_PADCFG_MMR1 module registers */
+	mmr_unlock(MCU_PADCFG_MMR1_BASE, 1);
 }
 
 /*
Signature · 1 line
2.36.1
Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D