drivers: clock_control: Update LPC clock driver for USDHC
Add support to get USDHC clock frequency Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
parent
27c73d3841
commit
f28672a448
2 changed files with 10 additions and 0 deletions
|
@ -72,6 +72,14 @@ static int mcux_lpc_syscon_clock_control_get_subsys_rate(
|
|||
LOG_ERR("Missing feature define for HS_SPI clock!");
|
||||
#endif
|
||||
break;
|
||||
#if (defined(FSL_FEATURE_SOC_USDHC_COUNT) && FSL_FEATURE_SOC_USDHC_COUNT)
|
||||
case MCUX_USDHC1_CLK:
|
||||
*rate = CLOCK_GetSdioClkFreq(0);
|
||||
break;
|
||||
case MCUX_USDHC2_CLK:
|
||||
*rate = CLOCK_GetSdioClkFreq(1);
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue