2016-07-09 03:52:03 +08:00
|
|
|
# Kconfig - ETH_ENC28J60 Ethernet driver configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 Intel Corporation
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-07-09 03:52:03 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig ETH_ENC28J60
|
|
|
|
bool "ENC28J60C Ethernet Controller"
|
|
|
|
depends on SPI
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
ENC28J60C Stand-Alone Ethernet Controller
|
|
|
|
with SPI Interface
|
2016-07-09 03:52:03 +08:00
|
|
|
|
2016-12-06 17:33:17 +08:00
|
|
|
config ETH_ENC28J60_RX_THREAD_STACK_SIZE
|
|
|
|
int "Stack size for internal incoming packet handler"
|
|
|
|
depends on ETH_ENC28J60
|
|
|
|
default 800
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
Size of the stack used for internal thread which is ran for
|
|
|
|
incoming packet processing.
|
2016-12-06 17:33:17 +08:00
|
|
|
|
|
|
|
config ETH_ENC28J60_RX_THREAD_PRIO
|
|
|
|
int "Priority for internal incoming packet handler"
|
|
|
|
depends on ETH_ENC28J60
|
|
|
|
default 2
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
Priority level for internal thread which is ran for incoming
|
|
|
|
packet processing.
|
2016-12-06 17:33:17 +08:00
|
|
|
|
2017-03-03 00:42:16 +08:00
|
|
|
config ETH_EN28J60_TIMEOUT
|
|
|
|
int "IP buffer timeout"
|
|
|
|
depends on ETH_ENC28J60
|
|
|
|
default 100
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
Given timeout in milliseconds. Maximum amount of time
|
|
|
|
that the driver will wait from the IP stack to get
|
|
|
|
a memory buffer before the Ethernet frame is dropped.
|
2017-03-03 00:42:16 +08:00
|
|
|
|
2016-07-09 03:52:03 +08:00
|
|
|
config ETH_ENC28J60_0
|
|
|
|
bool "ENC28J60C Ethernet port 0"
|
|
|
|
depends on ETH_ENC28J60
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
Include port 0 driver
|
2016-07-09 03:52:03 +08:00
|
|
|
|
|
|
|
if ETH_ENC28J60 && ETH_ENC28J60_0
|
2016-09-09 01:07:11 +08:00
|
|
|
config ETH_EN28J60_0_FULL_DUPLEX
|
|
|
|
bool "ENC28J60 full duplex"
|
|
|
|
default y
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
Enable Full Duplex. Device is configured half duplex
|
|
|
|
when disabled.
|
2016-09-09 01:07:11 +08:00
|
|
|
|
2017-09-06 01:08:06 +08:00
|
|
|
config ETH_ENC28J60_0_GPIO_SPI_CS
|
2018-04-06 06:07:00 +08:00
|
|
|
bool "Manage SPI CS through a GPIO pin"
|
2017-09-06 01:08:06 +08:00
|
|
|
help
|
|
|
|
This option is useful if one needs to manage SPI CS through a GPIO
|
|
|
|
pin to by-pass the SPI controller's CS logic.
|
|
|
|
|
2016-07-09 03:52:03 +08:00
|
|
|
endif #ETH_ENC28J60 && ETH_ENC28J60_0
|