clock_control: add EDMA clock support

add clock rate for RT series from ipg
Kinetis does not need additional clock added

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
This commit is contained in:
Hake Huang 2020-04-19 13:20:11 +08:00 committed by Maureen Helm
commit 6bb555ce83

View file

@ -89,6 +89,12 @@ static int mcux_ccm_get_subsys_rate(struct device *dev,
(CLOCK_GetDiv(kCLOCK_Usdhc2Div) + 1U);
break;
#endif
#ifdef CONFIG_DMA_MCUX_EDMA
case IMX_CCM_EDMA_CLK:
*rate = CLOCK_GetIpgFreq();
break;
#endif
}
return 0;