Skip to content

Commit bba13ae

Browse files
FRASTMkartben
authored andcommitted
drivers: clock control: some stm32f4 have no div-q on there plli2s
Check that the plli2s has a DIV-Q output or not. That depends on the PLLi2S of some stm32F4xx devices Signed-off-by: Francois Ramu <[email protected]>
1 parent eec1287 commit bba13ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clock_control/clock_stm32_ll_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ static int stm32_clock_control_get_subsys_rate(const struct device *clock,
432432
STM32_PLL_R_DIVISOR);
433433
break;
434434
#endif
435-
#if defined(STM32_SRC_PLLI2S_Q) & STM32_PLLI2S_ENABLED
435+
#if defined(STM32_SRC_PLLI2S_Q) & STM32_PLLI2S_Q_ENABLED & STM32_PLLI2S_ENABLED
436436
case STM32_SRC_PLLI2S_Q:
437437
*rate = get_pll_div_frequency(get_pllsrc_frequency(),
438438
STM32_PLLI2S_M_DIVISOR,

0 commit comments

Comments
 (0)