1# ETH_ENC28J60 Ethernet driver configuration options
2
3# Copyright (c) 2015 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig ETH_ENC28J60
7	bool "ENC28J60C Ethernet Controller"
8	default y
9	depends on DT_HAS_MICROCHIP_ENC28J60_ENABLED
10	select SPI
11	help
12	  ENC28J60C Stand-Alone Ethernet Controller
13	  with SPI Interface
14
15if ETH_ENC28J60
16
17config ETH_ENC28J60_RX_THREAD_STACK_SIZE
18	int "Stack size for internal incoming packet handler"
19	depends on ETH_ENC28J60
20	default 800
21	help
22	  Size of the stack used for internal thread which is ran for
23	  incoming packet processing.
24
25config ETH_ENC28J60_RX_THREAD_PRIO
26	int "Priority for internal incoming packet handler"
27	depends on ETH_ENC28J60
28	default 2
29	help
30	  Priority level for internal thread which is ran for incoming
31	  packet processing.
32
33config ETH_ENC28J60_CLKRDY_INIT_WAIT_MS
34	int "Time to wait for the CLKRDY bit on driver init"
35	depends on ETH_ENC28J60
36	default 2
37	help
38	  Timeout in milliseconds. Maximum time the initialisation
39	  of the driver will wait for the OST to expire, indicated
40	  by the CLKRDY bit set. If timeout driver init will fail
41	  with -ETIMEDOUT.
42
43config ETH_ENC28J60_TIMEOUT
44	int "IP buffer timeout"
45	depends on ETH_ENC28J60
46	default 100
47	help
48	  Given timeout in milliseconds. Maximum amount of time
49	  that the driver will wait from the IP stack to get
50	  a memory buffer before the Ethernet frame is dropped.
51
52endif # ETH_ENC28J60
53