2018-09-20 11:26:14 +00:00
|
|
|
menu "Example Configuration"
|
|
|
|
|
2019-01-28 12:29:58 +00:00
|
|
|
config STORE_HISTORY
|
|
|
|
bool "Store command history in flash"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Linenoise line editing library provides functions to save and load
|
|
|
|
command history. If this option is enabled, initalizes a FAT filesystem
|
|
|
|
and uses it to store command history.
|
2018-09-20 11:26:14 +00:00
|
|
|
|
2019-01-28 12:29:58 +00:00
|
|
|
menu "Etherent PHY Device"
|
|
|
|
choice PHY_MODEL
|
|
|
|
prompt "Ethernet PHY Device"
|
2019-09-17 03:45:13 +00:00
|
|
|
default PHY_IP101
|
2019-01-28 12:29:58 +00:00
|
|
|
help
|
|
|
|
Select the PHY driver to use for the example.
|
|
|
|
config PHY_IP101
|
|
|
|
bool "IP101"
|
|
|
|
help
|
|
|
|
IP101 is a single port 10/100 MII/RMII/TP/Fiber Fast Ethernet Transceiver.
|
|
|
|
Goto http://www.icplus.com.tw/pp-IP101G.html for more information about it.
|
|
|
|
config PHY_TLK110
|
|
|
|
bool "TLK110"
|
|
|
|
help
|
|
|
|
TLK110 is an Industrial 10/100Mbps Ethernet Physical Layer Transceiver.
|
|
|
|
Goto http://www.ti.com/product/TLK110 for information about it.
|
|
|
|
config PHY_LAN8720
|
|
|
|
bool "LAN8720"
|
|
|
|
help
|
|
|
|
LAN8720 is a small footprint RMII 10/100 Ethernet Transceiver with HP Auto-MDIX Support.
|
|
|
|
Goto https://www.microchip.com/LAN8720A for more information about it.
|
|
|
|
endchoice
|
2018-09-20 11:26:14 +00:00
|
|
|
|
2019-01-28 12:29:58 +00:00
|
|
|
config PHY_ADDRESS
|
|
|
|
int "Ethernet PHY Address"
|
2019-09-17 03:45:13 +00:00
|
|
|
default 1
|
2019-01-28 12:29:58 +00:00
|
|
|
range 0 31
|
|
|
|
help
|
|
|
|
PHY Address of your PHY device. It dependens on your schematic design.
|
2018-09-20 11:26:14 +00:00
|
|
|
|
2019-01-28 12:29:58 +00:00
|
|
|
choice PHY_CLOCK_MODE
|
|
|
|
prompt "Ethernet PHY Clock Mode"
|
|
|
|
default PHY_CLOCK_GPIO0_IN
|
|
|
|
help
|
|
|
|
Select external (input on GPIO0) or internal (output on GPIO0, GPIO16 or GPIO17) RMII clock.
|
|
|
|
config PHY_CLOCK_GPIO0_IN
|
|
|
|
bool "GPIO0 Input"
|
|
|
|
help
|
|
|
|
Input of 50MHz RMII clock on GPIO0.
|
|
|
|
config PHY_CLOCK_GPIO0_OUT
|
2019-09-17 03:45:13 +00:00
|
|
|
bool "GPIO0 Output(READ HELP)"
|
2019-01-28 12:29:58 +00:00
|
|
|
help
|
2019-09-17 03:45:13 +00:00
|
|
|
GPIO0 can be set to output a pre-divided PLL clock (test only!).
|
|
|
|
Enabling this option will configure GPIO0 to output a 50MHz clock.
|
|
|
|
In fact this clock doesn't have directly relationship with EMAC peripheral.
|
|
|
|
Sometimes this clock won't work well with your PHY chip. You might need to
|
|
|
|
add some extra devices after GPIO0 (e.g. inverter).
|
|
|
|
Note that outputting RMII clock on GPIO0 is an experimental practice.
|
|
|
|
If you want the Ethernet to work with WiFi, don't select GPIO0 output mode for stability.
|
2019-01-28 12:29:58 +00:00
|
|
|
config PHY_CLOCK_GPIO16_OUT
|
|
|
|
bool "GPIO16 Output"
|
|
|
|
help
|
|
|
|
Output the internal 50MHz RMII clock on GPIO16.
|
|
|
|
config PHY_CLOCK_GPIO17_OUT
|
|
|
|
bool "GPIO17 Output (inverted)"
|
|
|
|
help
|
|
|
|
Output the internal 50MHz RMII clock on GPIO17 (inverted signal).
|
|
|
|
endchoice
|
2018-09-20 11:26:14 +00:00
|
|
|
|
2019-01-28 12:29:58 +00:00
|
|
|
config PHY_CLOCK_MODE
|
|
|
|
int
|
|
|
|
default 0 if PHY_CLOCK_GPIO0_IN
|
|
|
|
default 1 if PHY_CLOCK_GPIO0_OUT
|
|
|
|
default 2 if PHY_CLOCK_GPIO16_OUT
|
|
|
|
default 3 if PHY_CLOCK_GPIO17_OUT
|
2018-09-20 11:26:14 +00:00
|
|
|
|
2019-01-28 12:29:58 +00:00
|
|
|
config PHY_USE_POWER_PIN
|
|
|
|
bool "Use PHY Power (enable / disable) pin"
|
2019-09-17 03:45:13 +00:00
|
|
|
default y
|
2019-01-28 12:29:58 +00:00
|
|
|
help
|
|
|
|
Use a GPIO "power pin" to power the PHY on/off during operation.
|
|
|
|
When using GPIO0 to input RMII clock, the reset process will be interfered by this clock.
|
|
|
|
So we need another GPIO to control the switch on / off of the RMII clock.
|
2018-09-20 11:26:14 +00:00
|
|
|
|
2019-01-28 12:29:58 +00:00
|
|
|
if PHY_USE_POWER_PIN
|
|
|
|
config PHY_POWER_PIN
|
|
|
|
int "PHY Power GPIO"
|
2019-09-17 03:45:13 +00:00
|
|
|
default 5
|
2019-01-28 12:29:58 +00:00
|
|
|
range 0 33
|
|
|
|
depends on PHY_USE_POWER_PIN
|
|
|
|
help
|
|
|
|
GPIO number to use for powering on/off the PHY.
|
|
|
|
endif
|
|
|
|
endmenu
|
2018-09-20 11:26:14 +00:00
|
|
|
|
2019-01-28 12:29:58 +00:00
|
|
|
menu "Etherent SMI interface"
|
|
|
|
config PHY_SMI_MDC_PIN
|
|
|
|
int "SMI MDC Pin Number"
|
|
|
|
default 23
|
|
|
|
range 0 33
|
|
|
|
help
|
|
|
|
GPIO number used for SMI clock signal.
|
2018-09-20 11:26:14 +00:00
|
|
|
|
2019-01-28 12:29:58 +00:00
|
|
|
config PHY_SMI_MDIO_PIN
|
|
|
|
int "SMI MDIO Pin Number"
|
|
|
|
default 18
|
|
|
|
range 0 33
|
|
|
|
help
|
|
|
|
GPIO number used for SMI data signal.
|
|
|
|
endmenu
|
2018-09-20 11:26:14 +00:00
|
|
|
|
|
|
|
endmenu
|