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:
parent
2a8a580825
commit
2a6657f952
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue