Skip to contentSkip to conversation

ARM: dts: stm32: use RCC macro for CRC node on stm32f746

PATCH In review Dario Binacchi 2 participants 2 messages May 16, 2023

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

PATCH 1/1 ARM: dts: stm32: use RCC macro for CRC node on stm32f746

The patch replaces the number 12 with the appropriate numerical constant already defined in the file stm32f7-rcc.h.

---

 arch/arm/boot/dts/stm32f746.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/stm32f746.dtsi +1 -1
index dc868e6da40e..e3564b74a779 100644
@@ -515,7 +515,7 @@ pwrcfg: power-config@40007000 {
 		crc: crc@40023000 {
 			compatible = "st,stm32f7-crc";
 			reg = <0x40023000 0x400>;
-			clocks = <&rcc 0 12>;
+			clocks = <&rcc 0 STM32F7_AHB1_CLOCK(CRC)>;
 			status = "disabled";
 		};
 
Signature · 1 line
2.32.0
maintainer
#1 lore raw

hi Dario

Quoted 14 lines · Dario Binacchi

The patch replaces the number 12 with the appropriate numerical constant already defined in the file stm32f7-rcc.h.

---

  arch/arm/boot/dts/stm32f746.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/stm32f746.dtsi +0 -0
index dc868e6da40e..e3564b74a779 100644

arch/arm/boot/dts/stm32f746.dtsi pwrcfg: power-config@40007000 { · line 521

Quoted 8 lines
arch/arm/boot/dts/stm32f746.dtsi +1 -1
@@ -515,7 +515,7 @@ pwrcfg: power-config@40007000 {
  		crc: crc@40023000 {
  			compatible = "st,stm32f7-crc";
  			reg = <0x40023000 0x400>;
-			clocks = <&rcc 0 12>;
+			clocks = <&rcc 0 STM32F7_AHB1_CLOCK(CRC)>;
  			status = "disabled";
  		};
 

Applied on stm32-next.

Thanks.
Alex