soc: nxp_imx: Enable mcux lpi2c driver and clocks
Enables the mcux lpi2c shim driver and clocks on all imx rt socs when the i2c driver interface is enabled. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
395a92b36b
commit
9cad30814d
6 changed files with 63 additions and 0 deletions
|
@ -131,6 +131,11 @@ static ALWAYS_INLINE void clkInit(void)
|
|||
CLOCK_SetDiv(kCLOCK_UartDiv, 0); /* Set UART divider to 1 */
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_I2C_MCUX_LPI2C
|
||||
CLOCK_SetMux(kCLOCK_Lpi2cMux, 0); /* Set I2C source as USB1 PLL 480M */
|
||||
CLOCK_SetDiv(kCLOCK_Lpi2cDiv, 5); /* Set I2C divider to 6 */
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SPI_MCUX_LPSPI
|
||||
CLOCK_SetMux(kCLOCK_LpspiMux, 1); /* Set SPI source to USB1 PFD0 720M */
|
||||
CLOCK_SetDiv(kCLOCK_LpspiDiv, 7); /* Set SPI divider to 8 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue