ARM: dts: stm32: use RCC macro for CRC node on stm32f746
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Tue, 16 May 2023 08:52:19 +0000 (10:52 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Tue, 16 May 2023 14:27:12 +0000 (16:27 +0200)
The patch replaces the number 12 with the appropriate numerical constant
already defined in the file stm32f7-rcc.h.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/stm32f746.dtsi

index dc868e6da40e0fae8e98cfca3f3674efa61210d7..e3564b74a77916ef4a50d5f116077683d7bc307a 100644 (file)
                crc: crc@40023000 {
                        compatible = "st,stm32f7-crc";
                        reg = <0x40023000 0x400>;
-                       clocks = <&rcc 0 12>;
+                       clocks = <&rcc 0 STM32F7_AHB1_CLOCK(CRC)>;
                        status = "disabled";
                };