[PATCH v2 06/27] usb: musb: allow all hw glue modules built into one single image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ming Lei <tom.leiming@xxxxxxxxx>

This patch allows all hw glue drivers to be built into one single
image, so that we can support one single image to be run in multiple
machines.

Signed-off-by: Ming Lei <tom.leiming@xxxxxxxxx>
---
 drivers/usb/musb/Kconfig |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig
index f7d6c61..8846cc0 100644
--- a/drivers/usb/musb/Kconfig
+++ b/drivers/usb/musb/Kconfig
@@ -33,46 +33,43 @@ config USB_MUSB_HDRC
 	  To compile this driver as a module, choose M here; the
 	  module will be called "musb-hdrc".
 
-choice
-	prompt "Platform Glue Layer"
+comment "Platform Glue Layer"
 	depends on USB_MUSB_HDRC
 
 config USB_MUSB_DAVINCI_GLUE
 	select USB_MUSB_DAVINCI
 	tristate "DaVinci"
-	depends on ARCH_DAVINCI_DMx
+	depends on ARCH_DAVINCI_DMx && USB_MUSB_HDRC
 
 config USB_MUSB_DA8XX_GLUE
 	select USB_MUSB_DA8XX
 	tristate "DA8xx/OMAP-L1x"
-	depends on ARCH_DAVINCI_DA8XX
+	depends on ARCH_DAVINCI_DA8XX && USB_MUSB_HDRC
 
 config USB_MUSB_TUSB6010_GLUE
 	select USB_MUSB_TUSB6010
 	tristate "TUSB6010"
-	depends on ARCH_OMAP
+	depends on ARCH_OMAP && USB_MUSB_HDRC
 
 config USB_MUSB_OMAP2PLUS_GLUE
 	select USB_MUSB_OMAP2PLUS
 	tristate "OMAP2430 and onwards"
-	depends on ARCH_OMAP2PLUS
+	depends on ARCH_OMAP2PLUS && USB_MUSB_HDRC
 
 config USB_MUSB_AM35X_GLUE
 	select USB_MUSB_AM35X
 	tristate "AM35x"
-	depends on ARCH_OMAP
+	depends on ARCH_OMAP && USB_MUSB_HDRC
 
 config USB_MUSB_BLACKFIN_GLUE
 	select USB_MUSB_BLACKFIN
 	tristate "Blackfin"
-	depends on (BF54x && !BF544) || (BF52x && ! BF522 && !BF523)
+	depends on ((BF54x && !BF544) || (BF52x && ! BF522 && !BF523)) && USB_MUSB_HDRC
 
 config USB_MUSB_UX500_GLUE
 	select USB_MUSB_UX500
 	tristate "U8500 and U5500"
-	depends on (ARCH_U8500 && AB8500_USB) || (ARCH_U5500)
-
-endchoice
+	depends on ((ARCH_U8500 && AB8500_USB) || ARCH_U5500) && USB_MUSB_HDRC
 
 config USB_MUSB_DAVINCI
 	bool
-- 
1.7.3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux