Browse Source

soc: nxp: imxrt11xx: Enable clock for LPCI2C6

Enable clock for LPCI2C6. This is needed to control some
peripherals such as camera sensor.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
pull/72606/head
Phi Bang Nguyen 1 year ago committed by Anas Nashif
parent
commit
1e9448b404
  1. 5
      soc/nxp/imxrt/imxrt11xx/soc.c

5
soc/nxp/imxrt/imxrt11xx/soc.c

@ -398,6 +398,11 @@ static ALWAYS_INLINE void clock_init(void) @@ -398,6 +398,11 @@ static ALWAYS_INLINE void clock_init(void)
rootCfg.mux = kCLOCK_LPI2C5_ClockRoot_MuxOscRc48MDiv2;
rootCfg.div = 1;
CLOCK_SetRootClock(kCLOCK_Root_Lpi2c5, &rootCfg);
/* Configure Lpi2c6 using Osc24M */
rootCfg.mux = kCLOCK_LPI2C6_ClockRoot_MuxOsc24MOut;
rootCfg.div = 12;
CLOCK_SetRootClock(kCLOCK_Root_Lpi2c6, &rootCfg);
#endif

Loading…
Cancel
Save