usb: net: migrate CONFIG_USB_HOST_ETHER to Kconfig
CONFIG_USB_HOST_ETHER is the framework that the drivers are dependent on
USB_HOST_ETHER. Use this as a menu and move the existing LAN75XX and
LAN78XX options under new menu. Finally update the defconfigs that need
CONFIG_USB_HOST_ETHER.
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/drivers/usb/eth/Kconfig b/drivers/usb/eth/Kconfig
index 14cfa26..ab0fb6c 100644
--- a/drivers/usb/eth/Kconfig
+++ b/drivers/usb/eth/Kconfig
@@ -1,7 +1,14 @@
-comment "USB to Ethernet Controller Drivers"
+menuconfig USB_HOST_ETHER
+ bool "USB to Ethernet Controller Drivers"
+ ---help---
+ Say Y here if you would like to enable support for USB Ethernet
+ adapters.
+
+if USB_HOST_ETHER
config USB_ETHER_LAN75XX
bool "Microchip LAN75XX support"
+ depends on USB_HOST_ETHER
---help---
Say Y here if you would like to support Microchip LAN75XX Hi-Speed
USB 2.0 to 10/100/1000 Gigabit Ethernet controller.
@@ -10,8 +17,11 @@
config USB_ETHER_LAN78XX
bool "Microchip LAN78XX support"
+ depends on USB_HOST_ETHER
---help---
Say Y here if you would like to support Microchip LAN78XX USB 3.1
Gen 1 to 10/100/1000 Gigabit Ethernet controller.
Supports 10Base-T/ 100Base-TX/1000Base-T.
This driver supports the internal PHY.
+
+endif