]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: stm32: use RCC macro for CRC node on stm32f746
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Sun, 3 Sep 2023 20:48:43 +0000 (22:48 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 4 Oct 2023 11:26:02 +0000 (13:26 +0200)
commit 7a5f349e592c254f3c1ac34665b6c3905576efc2 Linux upstream.

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>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/dts/stm32f746.dtsi

index dc5c257fb5fbf690511381f8f0716a40bd8b2bbb..7b4bd805c998a59b0ae7b1685c4f5f90b1aaf656 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";
                };