drivers: clock_control_mcux_syscon: Added get support for I2S FLEXCOMM
Previously, I2S_MCUX_FLEXCOMM was expected to use the external MCLK only but it's possible for I2S_MCUX_FLEXCOMM to be sourced from other clocks like the audio_pll_clk, in which case the driver needs to be able to get the current clock frequency in order to properly set dividers for requested sample rate. Signed-off-by: Mike J. Chen <mjchen@google.com>
This commit is contained in:
parent
94edd97233
commit
e6d38ce11c
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ static int mcux_lpc_syscon_clock_control_get_subsys_rate(const struct device *de
|
|||
switch (clock_name) {
|
||||
|
||||
#if defined(CONFIG_I2C_MCUX_FLEXCOMM) || defined(CONFIG_SPI_MCUX_FLEXCOMM) || \
|
||||
defined(CONFIG_UART_MCUX_FLEXCOMM)
|
||||
defined(CONFIG_UART_MCUX_FLEXCOMM) || defined(CONFIG_I2S_MCUX_FLEXCOMM)
|
||||
case MCUX_FLEXCOMM0_CLK:
|
||||
*rate = CLOCK_GetFlexCommClkFreq(0);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue