drivers: clock_control: add clock rate definitions for MIPI and LCDIF

Add clock rate definitions for MIPI and LCDIF peripherals, to enable
retrival of these peripheral clock rates at runtime.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2023-01-09 13:15:59 -06:00 committed by Carles Cufí
commit d8b8566daf
2 changed files with 19 additions and 2 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020-22, NXP
* Copyright (c) 2020-23, NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -154,6 +154,18 @@ static int mcux_lpc_syscon_clock_control_get_subsys_rate(
*rate = CLOCK_GetI3cClkFreq();
break;
#endif
#if defined(CONFIG_MIPI_DSI_MCUX_2L)
case MCUX_MIPI_DSI_DPHY_CLK:
*rate = CLOCK_GetMipiDphyClkFreq();
break;
case MCUX_MIPI_DSI_ESC_CLK:
*rate = CLOCK_GetMipiDphyEscTxClkFreq();
break;
case MCUX_LCDIF_PIXEL_CLK:
*rate = CLOCK_GetDcPixelClkFreq();
break;
#endif
}
return 0;