soc: nxp: ke1xf: add I2C support
Add support for the Low Power Inter-Integrated Circuit (LPI2C) controllers found in the NXP Kinetis KE1xF SoC series. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
18ab73d02c
commit
efa2b23fcd
5 changed files with 55 additions and 0 deletions
|
@ -202,6 +202,12 @@ static ALWAYS_INLINE void clk_init(void)
|
|||
#ifdef CONFIG_UART_MCUX_LPUART_2
|
||||
CLOCK_SetIpSrc(kCLOCK_Lpuart2, kCLOCK_IpSrcFircAsync);
|
||||
#endif
|
||||
#ifdef CONFIG_I2C_0
|
||||
CLOCK_SetIpSrc(kCLOCK_Lpi2c0, kCLOCK_IpSrcFircAsync);
|
||||
#endif
|
||||
#ifdef CONFIG_I2C_1
|
||||
CLOCK_SetIpSrc(kCLOCK_Lpi2c1, kCLOCK_IpSrcFircAsync);
|
||||
#endif
|
||||
#ifdef DT_NXP_KINETIS_SCG_0_CLKOUT_SOURCE
|
||||
CLOCK_SetClkOutSel(DT_NXP_KINETIS_SCG_0_CLKOUT_SOURCE);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue