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:
parent
1b238b8bd3
commit
d42833c68b
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue