drivers: can: Fix isotp test failed on rt1170 EVK

Config the FlexCAN3 with a maximum 80MHz root clock to fix

Signed-off-by: Crist Xu <crist.xu@nxp.com>
This commit is contained in:
Crist Xu 2021-08-12 10:58:47 +08:00 committed by Maureen Helm
commit d42833c68b

View file

@ -334,6 +334,13 @@ static ALWAYS_INLINE void clock_init(void)
CLOCK_SetRootClock(kCLOCK_Root_Lpspi1, &rootCfg); CLOCK_SetRootClock(kCLOCK_Root_Lpspi1, &rootCfg);
#endif #endif
#ifdef CONFIG_CAN_MCUX_FLEXCAN
/* Configure CAN3 using OSC_RC_400M */
rootCfg.mux = kCLOCK_CAN3_ClockRoot_MuxOscRc400M;
rootCfg.div = 5;
CLOCK_SetRootClock(kCLOCK_Root_Can3, &rootCfg);
#endif
#ifdef CONFIG_COUNTER_MCUX_GPT #ifdef CONFIG_COUNTER_MCUX_GPT
rootCfg.mux = kCLOCK_GPT1_ClockRoot_MuxOscRc48MDiv2; rootCfg.mux = kCLOCK_GPT1_ClockRoot_MuxOscRc48MDiv2;
rootCfg.div = 1; rootCfg.div = 1;