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:
Mahesh Mahadevan 2021-07-27 15:46:22 -05:00 committed by Christopher Friedt
commit f28672a448
2 changed files with 10 additions and 0 deletions

View file

@ -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