1# ETH_MCUX Ethernet driver configuration options 2 3# Copyright (c) 2016-2017 ARM Ltd 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig ETH_MCUX 7 bool "MCUX Ethernet driver" 8 depends on HAS_MCUX_ENET 9 select NOCACHE_MEMORY if HAS_MCUX_CACHE 10 select ARM_MPU if CPU_CORTEX_M7 11 select NET_POWER_MANAGEMENT if PM_DEVICE 12 help 13 Enable MCUX Ethernet driver. Note, this driver performs one shot PHY 14 setup. There is no support for PHY disconnect, reconnect or 15 configuration change. 16 17if ETH_MCUX 18 19config ETH_MCUX_PROMISCUOUS_MODE 20 bool "Enable promiscuous mode" 21 help 22 Place the Ethernet receiver in promiscuous mode. This may be useful 23 for debugging and not needed for normal work. 24 25config ETH_MCUX_RMII_EXT_CLK 26 bool "Enable RMII clock from external sources" 27 help 28 Setting this option will configure MCUX clock block to feed RMII 29 reference clock from external source (ENET_1588_CLKIN) 30 31config ETH_MCUX_NO_PHY_SMI 32 bool "Do not use SMI for PHY communication" 33 help 34 Some PHY devices, with DSA capabilities do not use SMI for 35 communication with MAC ENET controller. Other busses - like SPI 36 or I2C are used instead. 37 38config ETH_MCUX_PHY_TICK_MS 39 int "PHY poll period (ms)" 40 default 1000 41 range 100 30000 42 help 43 Set the PHY status polling period. 44 45config ETH_MCUX_PHY_EXTRA_DEBUG 46 bool "Enable additional detailed PHY debug" 47 help 48 Enable additional PHY related debug information related to 49 PHY status polling. 50 51config ETH_MCUX_RX_BUFFERS 52 int "Number of MCUX RX buffers" 53 default 1 54 range 1 16 55 help 56 Set the number of RX buffers provided to the MCUX driver. 57 58config ETH_MCUX_TX_BUFFERS 59 int "Number of MCUX TX buffers" 60 default 1 61 range 1 1 62 help 63 Set the number of TX buffers provided to the MCUX driver. 64 65config ETH_MCUX_HW_ACCELERATION 66 bool "Enable hardware acceleration" 67 help 68 Enable hardware acceleration for the following: 69 - IPv4, UDP and TCP checksum (both Rx and Tx) 70 71config PTP_CLOCK_MCUX 72 bool "MCUX PTP clock driver support" 73 default y 74 depends on PTP_CLOCK || (NET_PKT_TIMESTAMP && NET_GPTP) 75 help 76 Enable MCUX PTP clock support. 77 78if PTP_CLOCK_MCUX 79 80config ETH_MCUX_PTP_CLOCK_SRC_HZ 81 int "Frequency of the clock source for the PTP timer" 82 default 50000000 83 help 84 Set the frequency in Hz sourced to the PTP timer. 85 If the value is set properly, the timer will be accurate. 86 87config ETH_MCUX_PTP_CLOCK_INIT_PRIO 88 int 89 default 85 90 help 91 MCUX PTP Clock initialization priority level. There is 92 a dependency from the network stack that this device 93 initializes before network stack (NET_INIT_PRIO). 94 95endif # PTP_CLOCK_MCUX 96 97endif # ETH_MCUX 98