Add support for multiple PHY selections for multiple Ethernet MAC drivers
This commit is contained in:
parent
e7479e9b9d
commit
72340b85fe
@ -318,11 +318,20 @@ source drivers/mtd/Kconfig
|
||||
endif
|
||||
|
||||
menuconfig NETDEVICES
|
||||
bool "Network Device Support"
|
||||
default n
|
||||
bool "Network Device/PHY Support"
|
||||
default n if !ARCH_HAVE_PHY
|
||||
default y if ARCH_HAVE_PHY
|
||||
depends on NET
|
||||
---help---
|
||||
Network interface drivers. See also include/nuttx/net/net.h
|
||||
Network interface driver and PHY selections. This options enables
|
||||
selection of drivers for external Ethernet MAC chips. The majority
|
||||
of MCUs, however, have built-in, internal Ethernet MAC peripherals
|
||||
and that Ethernet support is selected in the MCU-specific
|
||||
configuration menus.
|
||||
|
||||
Most Ethernet MAC drivers, whether internal or external, will
|
||||
require configuration of an external PHY device. That external PHY
|
||||
device is also selected via this menu.
|
||||
|
||||
if NETDEVICES
|
||||
source drivers/net/Kconfig
|
||||
|
@ -2,6 +2,16 @@
|
||||
# For a description of the syntax of this configuration file,
|
||||
# see misc/tools/kconfig-language.txt.
|
||||
#
|
||||
|
||||
config NETDEV_MULTINIC
|
||||
bool "Multiple NIC support"
|
||||
default n
|
||||
---help---
|
||||
Select this option if you board and/or MCU are capable of supporting
|
||||
multiple Ethernet MAC drivers.
|
||||
|
||||
comment "External Ethernet MAC Device Support"
|
||||
|
||||
config NET_DM90x0
|
||||
bool "Davicom dm9000/dm9010 support"
|
||||
default n
|
||||
@ -149,3 +159,62 @@ config NET_VNET
|
||||
bool "VNET support"
|
||||
default n
|
||||
|
||||
if ARCH_HAVE_PHY
|
||||
|
||||
comment "External Ethernet PHY Device Support"
|
||||
|
||||
choice
|
||||
prompt "Board PHY Selection (ETH0)"
|
||||
default ETH0_PHY_NONE
|
||||
---help---
|
||||
Identify the PHY on your board. This setting is not used by all Ethernet
|
||||
drivers nor do all Ethernet drivers support all PHYs.
|
||||
|
||||
config ETH0_PHY_NONE
|
||||
bool "No PHY support"
|
||||
|
||||
config ETH0_PHY_KS8721
|
||||
bool "Micrel KS8721 PHY"
|
||||
|
||||
config ETH0_PHY_KSZ8051
|
||||
bool "Micrel KSZ8051 PHY"
|
||||
|
||||
config ETH0_PHY_DP83848C
|
||||
bool "National Semiconduction DP83848C PHY"
|
||||
|
||||
config ETH0_PHY_LAN8720
|
||||
bool "SMSC LAN8720 PHY"
|
||||
|
||||
config ETH0_PHY_DM9161
|
||||
bool "Davicom DM9161 PHY"
|
||||
|
||||
endchoice
|
||||
|
||||
choice
|
||||
prompt "Board PHY Selection (ETH1)"
|
||||
default ETH1_PHY_NONE
|
||||
depends on NETDEV_MULTINIC
|
||||
---help---
|
||||
Identify the PHY on your board. This setting is not used by all Ethernet
|
||||
drivers nor do all Ethernet drivers support all PHYs.
|
||||
|
||||
config ETH1_PHY_NONE
|
||||
bool "No PHY support"
|
||||
|
||||
config ETH1_PHY_KS8721
|
||||
bool "Micrel KS8721 PHY"
|
||||
|
||||
config ETH1_PHY_KSZ8051
|
||||
bool "Micrel KSZ8051 PHY"
|
||||
|
||||
config ETH1_PHY_DP83848C
|
||||
bool "National Semiconduction DP83848C PHY"
|
||||
|
||||
config ETH1_PHY_LAN8720
|
||||
bool "SMSC LAN8720 PHY"
|
||||
|
||||
config ETH1_PHY_DM9161
|
||||
bool "Davicom DM9161 PHY"
|
||||
|
||||
endchoice
|
||||
endif # ARCH_HAVE_PHY
|
||||
|
22
net/Kconfig
22
net/Kconfig
@ -14,28 +14,6 @@ config ARCH_HAVE_PHY
|
||||
|
||||
if NET
|
||||
|
||||
choice
|
||||
prompt "Board PHY Selection"
|
||||
depends on ARCH_HAVE_PHY
|
||||
default PHY_KS8721
|
||||
---help---
|
||||
Identify the PHY on your board. This setting is not used by all Ethernet
|
||||
drivers no do all Ethernet drivers support all PHYs.
|
||||
|
||||
config PHY_KS8721
|
||||
bool "Micrel KS8721 PHY"
|
||||
|
||||
config PHY_DP83848C
|
||||
bool "National Semiconduction DP83848C PHY"
|
||||
|
||||
config PHY_LAN8720
|
||||
bool "SMSC LAN8720 PHY"
|
||||
|
||||
config PHY_DM9161
|
||||
bool "Davicom DM9161 PHY"
|
||||
|
||||
endchoice
|
||||
|
||||
config NET_NOINTS
|
||||
bool "Not interrupt driven"
|
||||
default n
|
||||
|
Loading…
Reference in New Issue
Block a user