drivers: clock_control: lpc: syscon: Add BUSCLK support

Add support for the LPC BUS clock to the LPC SYSCON clock controller
driver.

Signed-off-by: Navin Sankar Velliangiri <navin@linumiz.com>
This commit is contained in:
Navin Sankar Velliangiri 2022-03-08 19:22:17 +01:00 committed by Carles Cufí
commit b69dadb6e5
2 changed files with 6 additions and 0 deletions

View file

@ -133,6 +133,10 @@ static int mcux_lpc_syscon_clock_control_get_subsys_rate(
*rate = CLOCK_GetCTimerClkFreq(4);
break;
#endif
case MCUX_BUS_CLK:
*rate = CLOCK_GetFreq(kCLOCK_BusClk);
break;
}
return 0;