clocks: ccm add gpt clock control into ccm driver

add clock frequence support for gpt

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
This commit is contained in:
Hake Huang 2020-12-09 16:30:59 +08:00 committed by Maureen Helm
parent 2a8a580825
commit 2a6657f952

View file

@ -128,6 +128,13 @@ static int mcux_ccm_get_subsys_rate(const struct device *dev,
}
} break;
#endif
#ifdef CONFIG_COUNTER_MCUX_GPT
case IMX_CCM_GPT_CLK:
*rate = CLOCK_GetFreq(kCLOCK_PerClk);
break;
#endif
}
return 0;