Skip to contentSkip to conversation

ARM: stm32: Fix DBGMCU macro on STM32MP13xx

PATCH In review Marek Vasut 2 participants 3 messages May 12, 2025 – Jun 9, 2025

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

PATCH 1/1 ARM: stm32: Fix DBGMCU macro on STM32MP13xx

The DBGMCU block is available at address 0x50081000 both on STM32MP13xx and on STM32MP15xx . There is no reason to limit the DBGMCU macro being set only on STM32MP15xx , remove the ifdeffery.

---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Sughosh Ganu <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/mach-stm32mp/include/mach/stm32.h | 2 --
 1 file changed, 2 deletions(-)
arch/arm/mach-stm32mp/include/mach/stm32.h +0 -2
index 47b459b75d1..dfba57e7dc4 100644
@@ -78,9 +78,7 @@ enum forced_boot_mode {
 #define STM32_RCC_BASE			0x50000000
 #define STM32_PWR_BASE			0x50001000
 #define STM32_SYSCFG_BASE		0x50020000
-#ifdef CONFIG_STM32MP15X
 #define STM32_DBGMCU_BASE		0x50081000
-#endif
 #define STM32_FMC2_BASE			0x58002000
 #define STM32_IWDG2_BASE		0x5A002000
 #define STM32_DDRCTRL_BASE		0x5A003000
Signature · 1 line
2.47.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 22 lines · Marek Vasut

The DBGMCU block is available at address 0x50081000 both on STM32MP13xx and on STM32MP15xx . There is no reason to limit the DBGMCU macro being set only on STM32MP15xx , remove the ifdeffery.

---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Sughosh Ganu <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/mach-stm32mp/include/mach/stm32.h | 2 --
 1 file changed, 2 deletions(-)
arch/arm/mach-stm32mp/include/mach/stm32.h +0 -0
index 47b459b75d1..dfba57e7dc4 100644

arch/arm/mach-stm32mp/include/mach/stm32.h enum forced_boot_mode { · line 84

Quoted 9 lines
arch/arm/mach-stm32mp/include/mach/stm32.h +0 -2
@@ -78,9 +78,7 @@ enum forced_boot_mode {
 #define STM32_RCC_BASE			0x50000000
 #define STM32_PWR_BASE			0x50001000
 #define STM32_SYSCFG_BASE		0x50020000
-#ifdef CONFIG_STM32MP15X
 #define STM32_DBGMCU_BASE		0x50081000
-#endif
 #define STM32_FMC2_BASE			0x58002000
 #define STM32_IWDG2_BASE		0x5A002000
 #define STM32_DDRCTRL_BASE		0x5A003000

Thanks
Patrice

#2 lore raw
Quoted 37 lines · Patrice CHOTARD
Quoted 22 lines · Marek Vasut

The DBGMCU block is available at address 0x50081000 both on STM32MP13xx and on STM32MP15xx . There is no reason to limit the DBGMCU macro being set only on STM32MP15xx , remove the ifdeffery.

---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Sughosh Ganu <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/mach-stm32mp/include/mach/stm32.h | 2 --
 1 file changed, 2 deletions(-)
arch/arm/mach-stm32mp/include/mach/stm32.h +0 -0
index 47b459b75d1..dfba57e7dc4 100644

arch/arm/mach-stm32mp/include/mach/stm32.h enum forced_boot_mode { · line 84

Quoted 9 lines
arch/arm/mach-stm32mp/include/mach/stm32.h +0 -2
@@ -78,9 +78,7 @@ enum forced_boot_mode {
 #define STM32_RCC_BASE			0x50000000
 #define STM32_PWR_BASE			0x50001000
 #define STM32_SYSCFG_BASE		0x50020000
-#ifdef CONFIG_STM32MP15X
 #define STM32_DBGMCU_BASE		0x50081000
-#endif
 #define STM32_FMC2_BASE			0x58002000
 #define STM32_IWDG2_BASE		0x5A002000
 #define STM32_DDRCTRL_BASE		0x5A003000
Quoted 2 lines

Thanks
Patrice

Applied to u-boot-stm32/next

Thanks
Patrice