soc: arm: nxp: lpc55xxx: add MCAN support
Add support for the NXP LPC MCAN CAN-FD controller. Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
parent
8c07cb631e
commit
25433f1414
3 changed files with 11 additions and 0 deletions
|
@ -24,4 +24,8 @@ config SOC_FLASH_MCUX
|
||||||
default y
|
default y
|
||||||
depends on FLASH
|
depends on FLASH
|
||||||
|
|
||||||
|
config CAN_MCUX_MCAN
|
||||||
|
default y
|
||||||
|
depends on CAN
|
||||||
|
|
||||||
endif # SOC_LPC55S16
|
endif # SOC_LPC55S16
|
||||||
|
|
|
@ -17,6 +17,7 @@ config SOC_LPC55S16
|
||||||
select ARM_TRUSTZONE_M
|
select ARM_TRUSTZONE_M
|
||||||
select CLOCK_CONTROL
|
select CLOCK_CONTROL
|
||||||
select HAS_MCUX_IAP if !TRUSTED_EXECUTION_NONSECURE
|
select HAS_MCUX_IAP if !TRUSTED_EXECUTION_NONSECURE
|
||||||
|
select HAS_MCUX_MCAN
|
||||||
|
|
||||||
config SOC_LPC55S28
|
config SOC_LPC55S28
|
||||||
bool "SOC_LPC55S28 M33"
|
bool "SOC_LPC55S28 M33"
|
||||||
|
|
|
@ -175,6 +175,12 @@ DT_FOREACH_STATUS_OKAY(nxp_lpc_ctimer, CTIMER_CLOCK_SETUP)
|
||||||
CLOCK_AttachClk(kPLL0_DIV_to_FLEXCOMM7);
|
CLOCK_AttachClk(kPLL0_DIV_to_FLEXCOMM7);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(can0), nxp_lpc_mcan, okay)
|
||||||
|
CLOCK_SetClkDiv(kCLOCK_DivCanClk, 1U, false);
|
||||||
|
CLOCK_AttachClk(kMCAN_DIV_to_MCAN);
|
||||||
|
RESET_PeripheralReset(kMCAN_RST_SHIFT_RSTn);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* CONFIG_SOC_LPC55S69_CPU0 */
|
#endif /* CONFIG_SOC_LPC55S69_CPU0 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue