drivers: can: add support for the NXP Kinetis FlexCAN controller

Add MCUX driver shim for the NXP Kinetis FlexCAN CAN bus controller.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2019-06-06 20:42:06 +02:00 committed by Maureen Helm
commit 652fdfe3a1
7 changed files with 677 additions and 5 deletions

View file

@ -49,6 +49,11 @@ config HAS_MCUX_ENET
help
Set if the ethernet (ENET) module is present in the SoC.
config HAS_MCUX_FLEXCAN
bool
help
Set if the FlexCAN module is presents in the SoC.
config HAS_MCUX_FTFX
bool
help

View file

@ -28,3 +28,7 @@ zephyr_sources_ifdef(CONFIG_UART_MCUX_LPUART fsl_lpuart.c)
zephyr_sources_ifdef(CONFIG_COUNTER_MCUX_RTC fsl_rtc.c)
zephyr_sources_ifdef(CONFIG_RTC_MCUX fsl_rtc.c)
zephyr_sources_ifdef(CONFIG_WDT_MCUX_WDOG fsl_wdog.c)
zephyr_sources_ifdef(CONFIG_CAN_MCUX_FLEXCAN fsl_flexcan.c)
if(NOT CONFIG_ASSERT OR CONFIG_FORCE_NO_ASSERT)
zephyr_compile_definitions(NDEBUG) # squelch fsl_flexcan.c warning
endif()