From f6d3f6b92b8549308cf21013b8c58d3607d26f94 Mon Sep 17 00:00:00 2001 From: Andrei Gansari Date: Tue, 8 Jan 2019 16:03:18 +0200 Subject: [PATCH] mimix1050rt: gPTP build fix Sets iMX RT's cmake and fixup to enable gPTP in MCUX_ETH. Signed-off-by: Andrei Gansari --- ext/hal/nxp/mcux/drivers/imx/CMakeLists.txt | 4 ++++ soc/arm/nxp_imx/rt/dts_fixup.h | 1 + 2 files changed, 5 insertions(+) diff --git a/ext/hal/nxp/mcux/drivers/imx/CMakeLists.txt b/ext/hal/nxp/mcux/drivers/imx/CMakeLists.txt index 720d203765..74fcc797eb 100644 --- a/ext/hal/nxp/mcux/drivers/imx/CMakeLists.txt +++ b/ext/hal/nxp/mcux/drivers/imx/CMakeLists.txt @@ -6,6 +6,10 @@ zephyr_include_directories(.) +zephyr_library_compile_definitions_ifdef( + CONFIG_PTP_CLOCK_MCUX ENET_ENHANCEDBUFFERDESCRIPTOR_MODE +) + zephyr_sources_ifdef(CONFIG_GPIO_MCUX_IGPIO fsl_gpio.c) zephyr_sources_ifdef(CONFIG_SPI_MCUX_LPSPI fsl_lpspi.c) zephyr_sources_ifdef(CONFIG_UART_MCUX_LPUART fsl_lpuart.c) diff --git a/soc/arm/nxp_imx/rt/dts_fixup.h b/soc/arm/nxp_imx/rt/dts_fixup.h index 9cd3fa69f3..927694fff9 100644 --- a/soc/arm/nxp_imx/rt/dts_fixup.h +++ b/soc/arm/nxp_imx/rt/dts_fixup.h @@ -48,6 +48,7 @@ #define DT_ETH_MCUX_0_MAC5 DT_NXP_KINETIS_ETHERNET_402D8000_LOCAL_MAC_ADDRESS_5 #define DT_IRQ_ETH_COMMON DT_NXP_KINETIS_ETHERNET_402D8000_IRQ_0 +#define DT_IRQ_ETH_IEEE1588_TMR DT_NXP_KINETIS_PTP_402D8000_PTP_IRQ_0 #define DT_ETH_MCUX_0_IRQ_PRI DT_NXP_KINETIS_ETHERNET_402D8000_IRQ_0_PRIORITY /* End of SoC Level DTS fixup file */