Skip to content

Commit 0a27353

Browse files
str4t0mcfriedt
authored andcommitted
dt-bindings: clock: stm32c0: add can-fd domain clock helper
On STM32C092 variants CAN-FD is supported, and the clock source can be chosen in the CCIPR1 register. This commit adds the helper to prepare that choice for the register. Signed-off-by: Thomas Stranger <[email protected]>
1 parent 33f534e commit 0a27353

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/zephyr/dt-bindings/clock/stm32c0_clock.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
/** @brief Device domain clocks selection helpers */
4747
/** CCIPR devices */
4848
#define USART1_SEL(val) STM32_DT_CLOCK_SELECT((val), 3, 0, CCIPR_REG)
49+
#define FDCAN_SEL(val) STM32_DT_CLOCK_SELECT((val), 3, 8, CCIPR_REG)
4950
#define I2C1_SEL(val) STM32_DT_CLOCK_SELECT((val), 3, 12, CCIPR_REG)
5051
#define I2C2_I2S1_SEL(val) STM32_DT_CLOCK_SELECT((val), 3, 14, CCIPR_REG)
5152
#define ADC_SEL(val) STM32_DT_CLOCK_SELECT((val), 3, 30, CCIPR_REG)

0 commit comments

Comments
 (0)