Skip to content

Commit 04c1bf6

Browse files
Alain Volmatkartben
authored andcommitted
shields: weact_ov2640_cam_module: use MCO macro from stm32 bindings
Switch to the usage of MCO configuration macros provided by stm32h7_clock.h clock bindings. Signed-off-by: Alain Volmat <[email protected]>
1 parent 23bb046 commit 04c1bf6

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

boards/shields/weact_ov2640_cam_module/boards/mini_stm32h743.overlay

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/* AHB clocks must respect the minimum ratio AHB / DCMI_PIXCLK of 2.5 (AN5020 - Rev 3).
88
* The OV2640 PCLK is around 72 MHz for QQVGA resolution (160x120) with MCO1_SEL_HSI48
9-
* and MCO1_PRE_DIV_4.
9+
* and MCO_PRE_DIV_4.
1010
*/
1111
&rcc {
1212
clocks = <&pll>;
@@ -19,20 +19,10 @@
1919
d3ppre = <2>;
2020
};
2121

22-
/* See reference manual (RM0433 Rev 8) page 390:
23-
* 100: HSI48 clock selected (hsi48_ck)
24-
*/
25-
#define MCO1_SEL_HSI48 4
26-
27-
/* See reference manual (RM0433 Rev 8) page 391:
28-
* 0100: division by 4
29-
*/
30-
#define MCO1_PRE_DIV_4 4
31-
3222
&mco1 {
3323
status = "okay";
3424
clocks = <&rcc STM32_SRC_HSI48 MCO1_SEL(MCO1_SEL_HSI48)>;
35-
prescaler = <MCO1_PRE(MCO1_PRE_DIV_4)>;
25+
prescaler = <MCO1_PRE(MCO_PRE_DIV_4)>;
3626
pinctrl-0 = <&rcc_mco_1_pa8>;
3727
pinctrl-names = "default";
3828
};

0 commit comments

Comments
 (0)