2021-07-14 03:37:47 -04:00
|
|
|
menu "esp_eth TEST_APPS Configuration"
|
|
|
|
|
2022-11-08 11:54:39 -05:00
|
|
|
choice TARGET_ETH_CONFIG
|
2021-07-14 03:37:47 -04:00
|
|
|
prompt "Ethernet peripheral device"
|
2022-11-08 11:54:39 -05:00
|
|
|
default TARGET_USE_INTERNAL_ETHERNET
|
2021-07-14 03:37:47 -04:00
|
|
|
help
|
2022-11-08 11:54:39 -05:00
|
|
|
Select type of Ethernet interface.
|
|
|
|
|
|
|
|
config TARGET_USE_INTERNAL_ETHERNET
|
|
|
|
depends on SOC_EMAC_SUPPORTED
|
|
|
|
select ETH_USE_ESP32_EMAC
|
|
|
|
bool "Internal EMAC"
|
|
|
|
help
|
|
|
|
Use internal Ethernet MAC controller.
|
|
|
|
|
2023-08-02 06:28:18 -04:00
|
|
|
|
2022-11-08 11:54:39 -05:00
|
|
|
config TARGET_USE_SPI_ETHERNET
|
|
|
|
bool "SPI Ethernet"
|
|
|
|
select ETH_USE_SPI_ETHERNET
|
|
|
|
help
|
|
|
|
Use external SPI-Ethernet module(s).
|
|
|
|
endchoice # TARGET_ETH_CONFIG
|
|
|
|
|
|
|
|
if TARGET_USE_INTERNAL_ETHERNET
|
|
|
|
choice TARGET_ETH_PHY_DEVICE
|
|
|
|
prompt "Ethernet PHY"
|
|
|
|
default TARGET_ETH_PHY_DEVICE_IP101
|
|
|
|
help
|
|
|
|
Select one of the devices listed here
|
|
|
|
|
|
|
|
config TARGET_ETH_PHY_DEVICE_IP101
|
|
|
|
bool "IP101"
|
2023-11-06 08:43:48 -05:00
|
|
|
config TARGET_ETH_PHY_DEVICE_LAN8720
|
2022-11-08 11:54:39 -05:00
|
|
|
bool "LAN8720"
|
2023-11-06 08:43:48 -05:00
|
|
|
config TARGET_ETH_PHY_DEVICE_KSZ8041
|
|
|
|
bool "KSZ8041"
|
2022-11-08 11:54:39 -05:00
|
|
|
config TARGET_ETH_PHY_DEVICE_RTL8201
|
|
|
|
bool "RTL8201"
|
|
|
|
config TARGET_ETH_PHY_DEVICE_DP83848
|
|
|
|
bool "DP83848"
|
|
|
|
endchoice # TARGET_ETH_PHY_DEVICE
|
2023-08-02 06:28:18 -04:00
|
|
|
|
|
|
|
config TARGET_USE_DEFAULT_EMAC_CONFIG
|
|
|
|
default y
|
|
|
|
bool "Use default EMAC config"
|
|
|
|
|
|
|
|
if !TARGET_USE_DEFAULT_EMAC_CONFIG
|
|
|
|
config TARGET_IO_MDC
|
|
|
|
int "SMI MDC GPIO number"
|
|
|
|
default 23
|
|
|
|
config TARGET_IO_MDIO
|
|
|
|
int "SMI MDIO GPIO number"
|
|
|
|
default 18
|
|
|
|
endif
|
|
|
|
|
2022-11-08 11:54:39 -05:00
|
|
|
endif # TARGET_USE_INTERNAL_ETHERNET
|
|
|
|
|
|
|
|
if TARGET_USE_SPI_ETHERNET
|
|
|
|
choice TARGET_ETH_SPI_DEVICE
|
|
|
|
prompt "Ethernet SPI Module"
|
|
|
|
default TARGET_ETH_PHY_DEVICE_W5500
|
|
|
|
help
|
|
|
|
Select one of the devices listed here
|
|
|
|
|
|
|
|
config TARGET_ETH_PHY_DEVICE_W5500
|
|
|
|
bool "W5500"
|
|
|
|
select ETH_SPI_ETHERNET_W5500
|
|
|
|
config TARGET_ETH_PHY_DEVICE_KSZ8851SNL
|
|
|
|
bool "KSZ8851SNL"
|
|
|
|
select ETH_SPI_ETHERNET_KSZ8851SNL
|
|
|
|
config TARGET_ETH_PHY_DEVICE_DM9051
|
|
|
|
bool "DM9051"
|
|
|
|
select ETH_SPI_ETHERNET_DM9051
|
|
|
|
endchoice # TARGET_ETH_SPI_DEVICE
|
|
|
|
|
|
|
|
config TARGET_SPI_CLOCK_MHZ
|
|
|
|
int "SPI clock speed (MHz)"
|
|
|
|
range 5 80
|
2023-10-09 05:47:32 -04:00
|
|
|
default 20
|
2022-11-08 11:54:39 -05:00
|
|
|
help
|
|
|
|
Set the clock speed (MHz) of SPI interface.
|
|
|
|
|
2024-01-29 08:00:50 -05:00
|
|
|
config TARGET_ETH_SPI_POLL_MS
|
|
|
|
int "SPI Ethernet Polling period in msec"
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
SPI Ethernet module polling period.
|
|
|
|
|
2022-11-08 11:54:39 -05:00
|
|
|
endif # TARGET_USE_SPI_ETHERNET
|
2021-07-14 03:37:47 -04:00
|
|
|
|
|
|
|
endmenu
|