dfu: Fix up the Kconfig mess
[platform/kernel/u-boot.git] / drivers / dfu / Kconfig
index fa27efb..b077444 100644 (file)
@@ -1,12 +1,22 @@
 menu "DFU support"
 
+config DFU
+       bool
+       imply USB_FUNCTION_DFU if USB_GADGET
+
 config USB_FUNCTION_DFU
        bool
        select HASH
+       depends on USB_GADGET
+
+config TFTP_FUNCTION_DFU
+       bool
+       depends on NET
 
-if CMD_DFU
+if DFU
 config DFU_TFTP
        bool "DFU via TFTP"
+       select TFTP_FUNCTION_DFU
        help
          This option allows performing update of DFU-managed medium with data
          sent via TFTP boot.