diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-09-17 10:52:23 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-09-17 10:52:23 -0600 |
commit | d17f2af35dc6b57ef4dc92ccc2a287d927ed7905 (patch) | |
tree | 46f292dd092657945ee19eac5e1a411dbf8a0bc9 /nuttx/drivers/net | |
parent | 59dcc17a925acf09087678bc6c1d5077336517a4 (diff) | |
download | nuttx-d17f2af35dc6b57ef4dc92ccc2a287d927ed7905.tar.gz nuttx-d17f2af35dc6b57ef4dc92ccc2a287d927ed7905.tar.bz2 nuttx-d17f2af35dc6b57ef4dc92ccc2a287d927ed7905.zip |
Add support for multiple PHY selections for multiple Ethernet MAC drivers
Diffstat (limited to 'nuttx/drivers/net')
-rw-r--r-- | nuttx/drivers/net/Kconfig | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/nuttx/drivers/net/Kconfig b/nuttx/drivers/net/Kconfig index 346a51e60..133a7cc8c 100644 --- a/nuttx/drivers/net/Kconfig +++ b/nuttx/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 |