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:
parent
0105a85ed2
commit
d8b8566daf
2 changed files with 19 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue