1# NXP ENET ethernet drivers configuration options
2
3# Copyright (c) 2016-2017 ARM Ltd
4# Copyright 2024-2025 NXP
5# SPDX-License-Identifier: Apache-2.0
6
7config ETH_NXP_ENET
8	bool "NXP ENET Ethernet driver"
9	default y
10	depends on DT_HAS_NXP_ENET_MAC_ENABLED
11	select NOCACHE_MEMORY if HAS_MCUX_CACHE && CPU_HAS_DCACHE
12	select ARM_MPU if CPU_CORTEX_M7
13	select MDIO if DT_HAS_NXP_ENET_MDIO_ENABLED
14	select NET_POWER_MANAGEMENT if (PM_DEVICE && SOC_FAMILY_KINETIS)
15	select ETH_DSA_SUPPORT
16	select PINCTRL
17	help
18	  Enable NXP ENET Ethernet driver.
19
20
21if ETH_NXP_ENET
22
23config ETH_NXP_ENET_1G
24	bool "1G mode for ENET1G instance"
25	default y
26	depends on DT_HAS_NXP_ENET1G_ENABLED
27	help
28	  Enable the use of the ENET1G ethernet instance in 1G mode.
29
30config ETH_NXP_ENET_USE_DTCM_FOR_DMA_BUFFER
31	bool "Use DTCM for hardware DMA buffers"
32	default y
33	help
34	  Place the hardware DMA buffers into DTCM for better
35	  networking performance.
36
37config ETH_NXP_ENET_HW_ACCELERATION
38	bool "Hardware acceleration"
39	default y
40	help
41	  Enable hardware acceleration for the following:
42	  - IPv4, UDP and TCP checksum (both Rx and Tx)
43
44config ETH_NXP_ENET_RX_BUFFERS
45	int "Number of RX buffers for ethernet driver"
46	default 6
47	range 6 16
48	help
49	  Set the number of RX buffers provided to the NXP ENET driver.
50
51config ETH_NXP_ENET_TX_BUFFERS
52	int "Number of TX buffers for ethernet driver"
53	default 1
54	range 1 16
55	help
56	  Set the number of TX buffers provided to the NXP ENET driver.
57
58config ETH_NXP_ENET_RX_THREAD_STACK_SIZE
59	int "NXP ENET RX thread stack size"
60	default 1600
61	help
62	  ENET RX thread stack size in bytes.
63
64config ETH_NXP_ENET_RX_THREAD_PRIORITY
65	int "NXP ENET driver RX cooperative thread priority"
66	default 2
67	help
68	  ENET MAC Driver handles RX in cooperative workqueue thread.
69	  This options sets the priority of that thread.
70
71config ETH_NXP_ENET_RMII_EXT_CLK
72	bool "RMII clock from external sources"
73	help
74	  Setting this option will configure ENET clock block to feed RMII
75	  reference clock from external source (ENET_1588_CLKIN)
76
77endif # ETH_NXP_ENET
78