drivers: ethernet: Remove deprecated eth_mcux
This driver was deprecated and must be removed by Zephyr version 4.1 according to lifecycle/release guidelines. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
parent
2ba6ba8494
commit
d46c382950
22 changed files with 89 additions and 2003 deletions
|
@ -16,9 +16,6 @@ if NETWORKING
|
||||||
config NET_L2_ETHERNET
|
config NET_L2_ETHERNET
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config ETH_MCUX_PHY_RESET
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # NETWORKING
|
endif # NETWORKING
|
||||||
|
|
||||||
endif # BOARD_MIMXRT1020_EVK
|
endif # BOARD_MIMXRT1020_EVK
|
||||||
|
|
|
@ -20,13 +20,6 @@ if NETWORKING
|
||||||
config NET_L2_ETHERNET
|
config NET_L2_ETHERNET
|
||||||
default y
|
default y
|
||||||
|
|
||||||
if ETH_MCUX
|
|
||||||
|
|
||||||
config ETH_MCUX_PHY_RESET
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ETH_MCUX
|
|
||||||
|
|
||||||
endif # NETWORKING
|
endif # NETWORKING
|
||||||
|
|
||||||
endif # BOARD_MIMXRT1024_EVK
|
endif # BOARD_MIMXRT1024_EVK
|
||||||
|
|
|
@ -16,13 +16,6 @@ if NETWORKING
|
||||||
config NET_L2_ETHERNET
|
config NET_L2_ETHERNET
|
||||||
default y
|
default y
|
||||||
|
|
||||||
if ETH_MCUX
|
|
||||||
|
|
||||||
config ETH_MCUX_PHY_RESET
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ETH_MCUX
|
|
||||||
|
|
||||||
endif # NETWORKING
|
endif # NETWORKING
|
||||||
|
|
||||||
endif # BOARD_MIMXRT1050_EVK
|
endif # BOARD_MIMXRT1050_EVK
|
||||||
|
|
|
@ -16,13 +16,6 @@ if NETWORKING
|
||||||
config NET_L2_ETHERNET
|
config NET_L2_ETHERNET
|
||||||
default y
|
default y
|
||||||
|
|
||||||
if ETH_MCUX
|
|
||||||
|
|
||||||
config ETH_MCUX_PHY_RESET
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ETH_MCUX
|
|
||||||
|
|
||||||
endif # NETWORKING
|
endif # NETWORKING
|
||||||
|
|
||||||
endif # BOARD_MIMXRT1060_EVK
|
endif # BOARD_MIMXRT1060_EVK
|
||||||
|
|
|
@ -16,13 +16,6 @@ if NETWORKING
|
||||||
config NET_L2_ETHERNET
|
config NET_L2_ETHERNET
|
||||||
default y
|
default y
|
||||||
|
|
||||||
if ETH_MCUX
|
|
||||||
|
|
||||||
config ETH_MCUX_PHY_RESET
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ETH_MCUX
|
|
||||||
|
|
||||||
endif # NETWORKING
|
endif # NETWORKING
|
||||||
|
|
||||||
endif # BOARD_MIMXRT1064_EVK
|
endif # BOARD_MIMXRT1064_EVK
|
||||||
|
|
|
@ -36,9 +36,6 @@ if NETWORKING
|
||||||
config NET_L2_ETHERNET
|
config NET_L2_ETHERNET
|
||||||
default y if CPU_CORTEX_M7 # No cache memory support is required for driver
|
default y if CPU_CORTEX_M7 # No cache memory support is required for driver
|
||||||
|
|
||||||
config ETH_MCUX_PHY_RESET
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # NETWORKING
|
endif # NETWORKING
|
||||||
|
|
||||||
endif # BOARD_MIMXRT1160_EVK
|
endif # BOARD_MIMXRT1160_EVK
|
||||||
|
|
|
@ -39,9 +39,6 @@ if NETWORKING
|
||||||
config NET_L2_ETHERNET
|
config NET_L2_ETHERNET
|
||||||
default y if CPU_CORTEX_M7 # No cache memory support is required for driver
|
default y if CPU_CORTEX_M7 # No cache memory support is required for driver
|
||||||
|
|
||||||
config ETH_MCUX_PHY_RESET
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # NETWORKING
|
endif # NETWORKING
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -216,6 +216,7 @@ Entropy
|
||||||
Ethernet
|
Ethernet
|
||||||
========
|
========
|
||||||
|
|
||||||
|
* Deprecated eth_mcux driver was removed.
|
||||||
* Silabs gecko ethernet changes:
|
* Silabs gecko ethernet changes:
|
||||||
|
|
||||||
* Renamed the devicetree property ``location-phy_mdc`` to ``location-phy-mdc``.
|
* Renamed the devicetree property ``location-phy_mdc`` to ``location-phy-mdc``.
|
||||||
|
|
|
@ -41,9 +41,10 @@ zephyr_library_sources_ifdef(CONFIG_ETH_ADIN2111 eth_adin2111.c)
|
||||||
zephyr_library_sources_ifdef(CONFIG_ETH_LAN865X eth_lan865x.c oa_tc6.c)
|
zephyr_library_sources_ifdef(CONFIG_ETH_LAN865X eth_lan865x.c oa_tc6.c)
|
||||||
zephyr_library_sources_ifdef(CONFIG_ETH_XMC4XXX eth_xmc4xxx.c)
|
zephyr_library_sources_ifdef(CONFIG_ETH_XMC4XXX eth_xmc4xxx.c)
|
||||||
zephyr_library_sources_ifdef(CONFIG_ETH_TEST eth_test.c)
|
zephyr_library_sources_ifdef(CONFIG_ETH_TEST eth_test.c)
|
||||||
zephyr_library_sources_ifdef(CONFIG_ETH_RENESAS_RA eth_renesas_ra.c)
|
zephyr_library_sources_ifdef(CONFIG_ETH_RENESAS_RA eth_renesas_ra.c)
|
||||||
zephyr_library_sources_ifdef(CONFIG_ETH_LAN9250 eth_lan9250.c)
|
zephyr_library_sources_ifdef(CONFIG_ETH_LAN9250 eth_lan9250.c)
|
||||||
zephyr_library_sources_ifdef(CONFIG_ETH_SY1XX eth_sensry_sy1xx_mac.c)
|
zephyr_library_sources_ifdef(CONFIG_ETH_SY1XX eth_sensry_sy1xx_mac.c)
|
||||||
|
zephyr_library_sources_ifdef(CONFIG_ETH_NXP_ENET eth_nxp_enet.c)
|
||||||
|
|
||||||
if(CONFIG_ETH_NXP_S32_NETC)
|
if(CONFIG_ETH_NXP_S32_NETC)
|
||||||
zephyr_library_sources(eth_nxp_s32_netc.c)
|
zephyr_library_sources(eth_nxp_s32_netc.c)
|
||||||
|
@ -70,6 +71,5 @@ endif()
|
||||||
|
|
||||||
add_subdirectory(phy)
|
add_subdirectory(phy)
|
||||||
add_subdirectory(eth_nxp_enet_qos)
|
add_subdirectory(eth_nxp_enet_qos)
|
||||||
add_subdirectory(nxp_enet)
|
|
||||||
add_subdirectory(nxp_imx_netc)
|
add_subdirectory(nxp_imx_netc)
|
||||||
add_subdirectory(dwc_xgmac)
|
add_subdirectory(dwc_xgmac)
|
||||||
|
|
|
@ -65,6 +65,7 @@ source "drivers/ethernet/Kconfig.w5500"
|
||||||
source "drivers/ethernet/Kconfig.dsa"
|
source "drivers/ethernet/Kconfig.dsa"
|
||||||
source "drivers/ethernet/Kconfig.xlnx_gem"
|
source "drivers/ethernet/Kconfig.xlnx_gem"
|
||||||
source "drivers/ethernet/Kconfig.cyclonev"
|
source "drivers/ethernet/Kconfig.cyclonev"
|
||||||
|
source "drivers/ethernet/Kconfig.nxp_enet"
|
||||||
source "drivers/ethernet/Kconfig.nxp_s32_netc"
|
source "drivers/ethernet/Kconfig.nxp_s32_netc"
|
||||||
source "drivers/ethernet/Kconfig.nxp_s32_gmac"
|
source "drivers/ethernet/Kconfig.nxp_s32_gmac"
|
||||||
source "drivers/ethernet/Kconfig.smsc91x"
|
source "drivers/ethernet/Kconfig.smsc91x"
|
||||||
|
@ -82,7 +83,6 @@ source "drivers/ethernet/eth_nxp_enet_qos/Kconfig"
|
||||||
source "drivers/ethernet/dwc_xgmac/Kconfig"
|
source "drivers/ethernet/dwc_xgmac/Kconfig"
|
||||||
source "drivers/ethernet/phy/Kconfig"
|
source "drivers/ethernet/phy/Kconfig"
|
||||||
|
|
||||||
source "drivers/ethernet/nxp_enet/Kconfig"
|
|
||||||
source "drivers/ethernet/nxp_imx_netc/Kconfig"
|
source "drivers/ethernet/nxp_imx_netc/Kconfig"
|
||||||
source "drivers/ethernet/Kconfig.renesas_ra"
|
source "drivers/ethernet/Kconfig.renesas_ra"
|
||||||
|
|
||||||
|
|
77
drivers/ethernet/Kconfig.nxp_enet
Normal file
77
drivers/ethernet/Kconfig.nxp_enet
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
# NXP ENET ethernet drivers configuration options
|
||||||
|
|
||||||
|
# Copyright (c) 2016-2017 ARM Ltd
|
||||||
|
# Copyright 2024-2025 NXP
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
config ETH_NXP_ENET
|
||||||
|
bool "NXP ENET Ethernet driver"
|
||||||
|
default y
|
||||||
|
depends on DT_HAS_NXP_ENET_MAC_ENABLED
|
||||||
|
select NOCACHE_MEMORY if HAS_MCUX_CACHE && CPU_HAS_DCACHE
|
||||||
|
select ARM_MPU if CPU_CORTEX_M7
|
||||||
|
select MDIO if DT_HAS_NXP_ENET_MDIO_ENABLED
|
||||||
|
select NET_POWER_MANAGEMENT if (PM_DEVICE && SOC_FAMILY_KINETIS)
|
||||||
|
select ETH_DSA_SUPPORT
|
||||||
|
select PINCTRL
|
||||||
|
help
|
||||||
|
Enable NXP ENET Ethernet driver.
|
||||||
|
|
||||||
|
|
||||||
|
if ETH_NXP_ENET
|
||||||
|
|
||||||
|
config ETH_NXP_ENET_1G
|
||||||
|
bool "1G mode for ENET1G instance"
|
||||||
|
default y
|
||||||
|
depends on DT_HAS_NXP_ENET1G_ENABLED
|
||||||
|
help
|
||||||
|
Enable the use of the ENET1G ethernet instance in 1G mode.
|
||||||
|
|
||||||
|
config ETH_NXP_ENET_USE_DTCM_FOR_DMA_BUFFER
|
||||||
|
bool "Use DTCM for hardware DMA buffers"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Place the hardware DMA buffers into DTCM for better
|
||||||
|
networking performance.
|
||||||
|
|
||||||
|
config ETH_NXP_ENET_HW_ACCELERATION
|
||||||
|
bool "Hardware acceleration"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Enable hardware acceleration for the following:
|
||||||
|
- IPv4, UDP and TCP checksum (both Rx and Tx)
|
||||||
|
|
||||||
|
config ETH_NXP_ENET_RX_BUFFERS
|
||||||
|
int "Number of RX buffers for ethernet driver"
|
||||||
|
default 6
|
||||||
|
range 6 16
|
||||||
|
help
|
||||||
|
Set the number of RX buffers provided to the NXP ENET driver.
|
||||||
|
|
||||||
|
config ETH_NXP_ENET_TX_BUFFERS
|
||||||
|
int "Number of TX buffers for ethernet driver"
|
||||||
|
default 1
|
||||||
|
range 1 16
|
||||||
|
help
|
||||||
|
Set the number of TX buffers provided to the NXP ENET driver.
|
||||||
|
|
||||||
|
config ETH_NXP_ENET_RX_THREAD_STACK_SIZE
|
||||||
|
int "NXP ENET RX thread stack size"
|
||||||
|
default 1600
|
||||||
|
help
|
||||||
|
ENET RX thread stack size in bytes.
|
||||||
|
|
||||||
|
config ETH_NXP_ENET_RX_THREAD_PRIORITY
|
||||||
|
int "NXP ENET driver RX cooperative thread priority"
|
||||||
|
default 2
|
||||||
|
help
|
||||||
|
ENET MAC Driver handles RX in cooperative workqueue thread.
|
||||||
|
This options sets the priority of that thread.
|
||||||
|
|
||||||
|
config ETH_NXP_ENET_RMII_EXT_CLK
|
||||||
|
bool "RMII clock from external sources"
|
||||||
|
help
|
||||||
|
Setting this option will configure ENET clock block to feed RMII
|
||||||
|
reference clock from external source (ENET_1588_CLKIN)
|
||||||
|
|
||||||
|
endif # ETH_NXP_ENET
|
|
@ -47,7 +47,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
||||||
#include <zephyr/pm/device.h>
|
#include <zephyr/pm/device.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../eth.h"
|
#include "eth.h"
|
||||||
#include <zephyr/drivers/ethernet/eth_nxp_enet.h>
|
#include <zephyr/drivers/ethernet/eth_nxp_enet.h>
|
||||||
#include <zephyr/dt-bindings/ethernet/nxp_enet.h>
|
#include <zephyr/dt-bindings/ethernet/nxp_enet.h>
|
||||||
#include <fsl_enet.h>
|
#include <fsl_enet.h>
|
|
@ -1,5 +0,0 @@
|
||||||
# Copyright 2024 NXP
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
zephyr_library_sources_ifdef(CONFIG_ETH_NXP_ENET eth_nxp_enet.c)
|
|
||||||
zephyr_library_sources_ifdef(CONFIG_ETH_MCUX eth_mcux.c)
|
|
|
@ -1,201 +0,0 @@
|
||||||
# NXP ENET ethernet drivers configuration options
|
|
||||||
|
|
||||||
# Copyright (c) 2016-2017 ARM Ltd
|
|
||||||
# Copyright 2024 NXP
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
menu "NXP ENET"
|
|
||||||
|
|
||||||
choice NXP_ENET_DRIVER
|
|
||||||
prompt "NXP ENET Driver Version"
|
|
||||||
default ETH_NXP_ENET if DT_HAS_NXP_ENET_MAC_ENABLED
|
|
||||||
default ETH_MCUX if DT_HAS_NXP_KINETIS_ETHERNET_ENABLED
|
|
||||||
depends on DT_HAS_NXP_ENET_MAC_ENABLED || DT_HAS_NXP_KINETIS_ETHERNET_ENABLED
|
|
||||||
|
|
||||||
config ETH_NXP_ENET
|
|
||||||
bool "NXP ENET Ethernet driver"
|
|
||||||
select NOCACHE_MEMORY if HAS_MCUX_CACHE && CPU_HAS_DCACHE
|
|
||||||
select ARM_MPU if CPU_CORTEX_M7
|
|
||||||
select MDIO if DT_HAS_NXP_ENET_MDIO_ENABLED
|
|
||||||
select NET_POWER_MANAGEMENT if (PM_DEVICE && SOC_FAMILY_KINETIS)
|
|
||||||
select ETH_DSA_SUPPORT
|
|
||||||
select PINCTRL
|
|
||||||
help
|
|
||||||
Enable NXP ENET Ethernet driver.
|
|
||||||
|
|
||||||
config ETH_MCUX
|
|
||||||
bool "MCUX Ethernet driver"
|
|
||||||
select NOCACHE_MEMORY if HAS_MCUX_CACHE && CPU_HAS_DCACHE
|
|
||||||
select ARM_MPU if CPU_CORTEX_M7
|
|
||||||
select NET_POWER_MANAGEMENT if PM_DEVICE
|
|
||||||
select ETH_DSA_SUPPORT
|
|
||||||
select DEPRECATED
|
|
||||||
select PINCTRL
|
|
||||||
help
|
|
||||||
Enable deprecated legacy MCUX Ethernet driver.
|
|
||||||
Note, this driver performs one shot PHY setup.
|
|
||||||
There is no support for PHY disconnect, reconnect or configuration change.
|
|
||||||
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
if ETH_NXP_ENET
|
|
||||||
|
|
||||||
config ETH_NXP_ENET_1G
|
|
||||||
bool "1G mode for ENET1G instance"
|
|
||||||
default y
|
|
||||||
depends on DT_HAS_NXP_ENET1G_ENABLED
|
|
||||||
help
|
|
||||||
Enable the use of the ENET1G ethernet instance in 1G mode.
|
|
||||||
|
|
||||||
config ETH_NXP_ENET_USE_DTCM_FOR_DMA_BUFFER
|
|
||||||
bool "Use DTCM for hardware DMA buffers"
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
Place the hardware DMA buffers into DTCM for better
|
|
||||||
networking performance.
|
|
||||||
|
|
||||||
config ETH_NXP_ENET_HW_ACCELERATION
|
|
||||||
bool "Hardware acceleration"
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
Enable hardware acceleration for the following:
|
|
||||||
- IPv4, UDP and TCP checksum (both Rx and Tx)
|
|
||||||
|
|
||||||
config ETH_NXP_ENET_RX_BUFFERS
|
|
||||||
int "Number of RX buffers for ethernet driver"
|
|
||||||
default 6
|
|
||||||
range 6 16
|
|
||||||
help
|
|
||||||
Set the number of RX buffers provided to the NXP ENET driver.
|
|
||||||
|
|
||||||
config ETH_NXP_ENET_TX_BUFFERS
|
|
||||||
int "Number of TX buffers for ethernet driver"
|
|
||||||
default 1
|
|
||||||
range 1 16
|
|
||||||
help
|
|
||||||
Set the number of TX buffers provided to the NXP ENET driver.
|
|
||||||
|
|
||||||
config ETH_NXP_ENET_RX_THREAD_STACK_SIZE
|
|
||||||
int "NXP ENET RX thread stack size"
|
|
||||||
default 1600
|
|
||||||
help
|
|
||||||
ENET RX thread stack size in bytes.
|
|
||||||
|
|
||||||
config ETH_NXP_ENET_RX_THREAD_PRIORITY
|
|
||||||
int "NXP ENET driver RX cooperative thread priority"
|
|
||||||
default 2
|
|
||||||
help
|
|
||||||
ENET MAC Driver handles RX in cooperative workqueue thread.
|
|
||||||
This options sets the priority of that thread.
|
|
||||||
|
|
||||||
config ETH_NXP_ENET_RMII_EXT_CLK
|
|
||||||
bool "RMII clock from external sources"
|
|
||||||
help
|
|
||||||
Setting this option will configure ENET clock block to feed RMII
|
|
||||||
reference clock from external source (ENET_1588_CLKIN)
|
|
||||||
|
|
||||||
endif # ETH_NXP_ENET
|
|
||||||
|
|
||||||
if ETH_MCUX
|
|
||||||
|
|
||||||
config ETH_MCUX_PROMISCUOUS_MODE
|
|
||||||
bool "Promiscuous mode"
|
|
||||||
help
|
|
||||||
Place the Ethernet receiver in promiscuous mode. This may be useful
|
|
||||||
for debugging and not needed for normal work.
|
|
||||||
|
|
||||||
config ETH_MCUX_USE_DTCM_FOR_DMA_BUFFER
|
|
||||||
bool "Use DTCM for hardware DMA buffers"
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
Place the hardware DMA buffers into DTCM for better
|
|
||||||
networking performance.
|
|
||||||
|
|
||||||
config ETH_MCUX_HW_ACCELERATION
|
|
||||||
bool "Hardware acceleration"
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
Enable hardware acceleration for the following:
|
|
||||||
- IPv4, UDP and TCP checksum (both Rx and Tx)
|
|
||||||
|
|
||||||
config ETH_MCUX_RX_BUFFERS
|
|
||||||
int "Number of RX buffers for ethernet driver"
|
|
||||||
default 6
|
|
||||||
range 6 16
|
|
||||||
help
|
|
||||||
Set the number of RX buffers provided to the NXP ENET driver.
|
|
||||||
|
|
||||||
config ETH_MCUX_TX_BUFFERS
|
|
||||||
int "Number of TX buffers for ethernet driver"
|
|
||||||
default 1
|
|
||||||
range 1 16
|
|
||||||
help
|
|
||||||
Set the number of TX buffers provided to the NXP ENET driver.
|
|
||||||
|
|
||||||
menu "Legacy driver options"
|
|
||||||
|
|
||||||
config ETH_MCUX_RMII_EXT_CLK
|
|
||||||
bool "RMII clock from external sources"
|
|
||||||
help
|
|
||||||
Setting this option will configure MCUX clock block to feed RMII
|
|
||||||
reference clock from external source (ENET_1588_CLKIN)
|
|
||||||
|
|
||||||
config ETH_MCUX_NO_PHY_SMI
|
|
||||||
bool "Do not use SMI for PHY communication"
|
|
||||||
help
|
|
||||||
Some PHY devices, with DSA capabilities do not use SMI for
|
|
||||||
communication with MAC ENET controller. Other busses - like SPI
|
|
||||||
or I2C are used instead.
|
|
||||||
|
|
||||||
config ETH_MCUX_PHY_TICK_MS
|
|
||||||
int "PHY poll period (ms)"
|
|
||||||
default 1000
|
|
||||||
range 100 30000
|
|
||||||
help
|
|
||||||
Set the PHY status polling period.
|
|
||||||
|
|
||||||
config ETH_MCUX_PHY_EXTRA_DEBUG
|
|
||||||
bool "Additional detailed PHY debug"
|
|
||||||
help
|
|
||||||
Enable additional PHY related debug information related to
|
|
||||||
PHY status polling.
|
|
||||||
|
|
||||||
config ETH_MCUX_PHY_RESET
|
|
||||||
bool "Reset the PHY at boot"
|
|
||||||
help
|
|
||||||
Reset the ethernet PHY at boot. Requires dts properties int-gpios and
|
|
||||||
reset-gpios to be present.
|
|
||||||
|
|
||||||
config PTP_CLOCK_MCUX
|
|
||||||
bool "MCUX PTP clock driver support"
|
|
||||||
default y
|
|
||||||
depends on PTP_CLOCK || NET_L2_PTP
|
|
||||||
help
|
|
||||||
Enable MCUX PTP clock support.
|
|
||||||
|
|
||||||
if PTP_CLOCK_MCUX
|
|
||||||
|
|
||||||
config ETH_MCUX_PTP_CLOCK_SRC_HZ
|
|
||||||
int "Frequency of the clock source for the PTP timer"
|
|
||||||
default 50000000 if SOC_SERIES_KINETIS_K6X
|
|
||||||
default 50000000 if SOC_SERIES_IMXRT10XX
|
|
||||||
default 24000000 if SOC_SERIES_IMXRT11XX
|
|
||||||
help
|
|
||||||
Set the frequency in Hz sourced to the PTP timer.
|
|
||||||
If the value is set properly, the timer will be accurate.
|
|
||||||
|
|
||||||
config ETH_MCUX_PTP_CLOCK_INIT_PRIO
|
|
||||||
int
|
|
||||||
default 85
|
|
||||||
help
|
|
||||||
MCUX PTP Clock initialization priority level. There is
|
|
||||||
a dependency from the network stack that this device
|
|
||||||
initializes before network stack (NET_INIT_PRIO).
|
|
||||||
|
|
||||||
endif # PTP_CLOCK_MCUX
|
|
||||||
|
|
||||||
endmenu # Legacy options
|
|
||||||
|
|
||||||
endif # ETH_MCUX
|
|
||||||
|
|
||||||
endmenu # NXP ENET
|
|
File diff suppressed because it is too large
Load diff
|
@ -16,6 +16,5 @@ CONFIG_USB_REQUEST_BUFFER_SIZE=2048
|
||||||
|
|
||||||
# disable ethernet on K64
|
# disable ethernet on K64
|
||||||
CONFIG_NET_L2_ETHERNET=n
|
CONFIG_NET_L2_ETHERNET=n
|
||||||
CONFIG_ETH_MCUX=n
|
|
||||||
|
|
||||||
CONFIG_ISR_STACK_SIZE=4096
|
CONFIG_ISR_STACK_SIZE=4096
|
||||||
|
|
|
@ -33,7 +33,6 @@ CONFIG_SHELL_CMD_BUFF_SIZE=512
|
||||||
CONFIG_NET_L2_ETHERNET=y
|
CONFIG_NET_L2_ETHERNET=y
|
||||||
CONFIG_NET_IPV4=y
|
CONFIG_NET_IPV4=y
|
||||||
CONFIG_NET_IPV6=y
|
CONFIG_NET_IPV6=y
|
||||||
CONFIG_ETH_MCUX=n
|
|
||||||
CONFIG_NET_ZPERF=y
|
CONFIG_NET_ZPERF=y
|
||||||
CONFIG_NET_ZPERF_MAX_PACKET_SIZE=1500
|
CONFIG_NET_ZPERF_MAX_PACKET_SIZE=1500
|
||||||
CONFIG_NET_BUF_LOG=y
|
CONFIG_NET_BUF_LOG=y
|
||||||
|
|
|
@ -33,7 +33,6 @@ CONFIG_SHELL_CMD_BUFF_SIZE=512
|
||||||
CONFIG_NET_L2_ETHERNET=y
|
CONFIG_NET_L2_ETHERNET=y
|
||||||
CONFIG_NET_IPV4=y
|
CONFIG_NET_IPV4=y
|
||||||
CONFIG_NET_IPV6=y
|
CONFIG_NET_IPV6=y
|
||||||
CONFIG_ETH_MCUX=n
|
|
||||||
CONFIG_NET_ZPERF=y
|
CONFIG_NET_ZPERF=y
|
||||||
CONFIG_NET_ZPERF_MAX_PACKET_SIZE=1500
|
CONFIG_NET_ZPERF_MAX_PACKET_SIZE=1500
|
||||||
CONFIG_NET_BUF_LOG=y
|
CONFIG_NET_BUF_LOG=y
|
||||||
|
|
|
@ -17,7 +17,6 @@ CORTEX_M_DEBUG_MONITOR_HOOK,n
|
||||||
DMA_INTEL_ADSP_GPDMA_DEBUG,n
|
DMA_INTEL_ADSP_GPDMA_DEBUG,n
|
||||||
ESPI_PERIPHERAL_DEBUG_PORT_80,n
|
ESPI_PERIPHERAL_DEBUG_PORT_80,n
|
||||||
ETH_E1000_VERBOSE_DEBUG,n
|
ETH_E1000_VERBOSE_DEBUG,n
|
||||||
ETH_MCUX_PHY_EXTRA_DEBUG,n
|
|
||||||
EXECUTE_XOR_WRITE,y
|
EXECUTE_XOR_WRITE,y
|
||||||
FAULT_DUMP,0
|
FAULT_DUMP,0
|
||||||
HW_STACK_PROTECTION,y
|
HW_STACK_PROTECTION,y
|
||||||
|
|
|
|
@ -66,7 +66,7 @@ const clock_enet_pll_config_t ethPllConfig = {
|
||||||
defined(CONFIG_SOC_MIMXRT1024)
|
defined(CONFIG_SOC_MIMXRT1024)
|
||||||
.enableClkOutput500M = true,
|
.enableClkOutput500M = true,
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_ETH_NXP_ENET) || defined(CONFIG_ETH_MCUX)
|
#if defined(CONFIG_ETH_NXP_ENET)
|
||||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(enet))
|
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(enet))
|
||||||
.enableClkOutput = true,
|
.enableClkOutput = true,
|
||||||
#endif
|
#endif
|
||||||
|
@ -74,7 +74,7 @@ const clock_enet_pll_config_t ethPllConfig = {
|
||||||
.enableClkOutput1 = true,
|
.enableClkOutput1 = true,
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_PTP_CLOCK_MCUX) || defined(CONFIG_PTP_CLOCK_NXP_ENET)
|
#if defined(CONFIG_PTP_CLOCK_NXP_ENET)
|
||||||
.enableClkOutput25M = true,
|
.enableClkOutput25M = true,
|
||||||
#else
|
#else
|
||||||
.enableClkOutput25M = false,
|
.enableClkOutput25M = false,
|
||||||
|
|
|
@ -408,7 +408,7 @@ __weak void clock_init(void)
|
||||||
CLOCK_SetRootClock(kCLOCK_Root_Lpi2c6, &rootCfg);
|
CLOCK_SetRootClock(kCLOCK_Root_Lpi2c6, &rootCfg);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_ETH_MCUX || CONFIG_ETH_NXP_ENET
|
#if CONFIG_ETH_NXP_ENET
|
||||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(enet))
|
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(enet))
|
||||||
/* 50 MHz ENET clock */
|
/* 50 MHz ENET clock */
|
||||||
rootCfg.mux = kCLOCK_ENET1_ClockRoot_MuxSysPll1Div2;
|
rootCfg.mux = kCLOCK_ENET1_ClockRoot_MuxSysPll1Div2;
|
||||||
|
@ -455,7 +455,7 @@ __weak void clock_init(void)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_PTP_CLOCK_MCUX) || defined(CONFIG_PTP_CLOCK_NXP_ENET)
|
#if defined(CONFIG_PTP_CLOCK_NXP_ENET)
|
||||||
/* 24MHz PTP clock */
|
/* 24MHz PTP clock */
|
||||||
rootCfg.mux = kCLOCK_ENET_TIMER1_ClockRoot_MuxOscRc48MDiv2;
|
rootCfg.mux = kCLOCK_ENET_TIMER1_ClockRoot_MuxOscRc48MDiv2;
|
||||||
rootCfg.div = 1;
|
rootCfg.div = 1;
|
||||||
|
|
|
@ -105,7 +105,7 @@ __weak void clock_init(void)
|
||||||
CLOCK_SetLpuartClock(LPUART0SRC_OSCERCLK);
|
CLOCK_SetLpuartClock(LPUART0SRC_OSCERCLK);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_ETH_MCUX || CONFIG_ETH_NXP_ENET
|
#if CONFIG_ETH_NXP_ENET
|
||||||
CLOCK_SetEnetTime0Clock(TIMESRC_OSCERCLK);
|
CLOCK_SetEnetTime0Clock(TIMESRC_OSCERCLK);
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_ETH_NXP_ENET_RMII_EXT_CLK
|
#if CONFIG_ETH_NXP_ENET_RMII_EXT_CLK
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue