Re: [PATCH 05/22] usb: musb: add Kconfig options for each glue layer

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

 



Hello.

On 02-12-2010 12:25, Felipe Balbi wrote:

This will make things simpler when choosing which
glue layer to compile. It avoids a lot of magic
around the "default" Kconfig option and lets the
user choose what exactly s/he wants to compile.

Signed-off-by: Felipe Balbi<balbi@xxxxxx>

diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c
index e823c70..d06b1e9 100644
--- a/arch/arm/mach-omap2/board-n8x0.c
+++ b/arch/arm/mach-omap2/board-n8x0.c
@@ -46,8 +46,8 @@ static struct device *mmc_device;
  #define TUSB6010_GPIO_ENABLE	0
  #define TUSB6010_DMACHAN	0x3f

-#if defined(CONFIG_USB_TUSB6010) || \
-	defined(CONFIG_USB_TUSB6010_MODULE)
+#if defined(CONFIG_USB_MUSB_TUSB6010) || \
+	defined(CONFIG_USB_MUSB_TUSB6010_MODULE)

   Isn't this config entry 'bool'?

diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig
index 341a37a..0f1f9ec 100644
--- a/drivers/usb/musb/Kconfig
+++ b/drivers/usb/musb/Kconfig
@@ -32,55 +32,35 @@ config USB_MUSB_HDRC
  	  To compile this driver as a module, choose M here; the
  	  module will be called "musb_hdrc".

-config USB_MUSB_SOC
-	boolean
+choice
+	prompt "Platform Glue Layer"
  	depends on USB_MUSB_HDRC
-	default y if ARCH_DAVINCI
-	default y if ARCH_OMAP2430
-	default y if ARCH_OMAP3
-	default y if ARCH_OMAP4
-	default y if (BF54x&&  !BF544)
-	default y if (BF52x&&  !BF522&&  !BF523)

-comment "DaVinci 35x and 644x USB support"
-	depends on USB_MUSB_HDRC && ARCH_DAVINCI_DMx
+config USB_MUSB_DAVINCI
+	bool "Support for DaVinci DMx"

Please keep the old name, or better change it to "DaVinci DM35x/64xx" or just "DaVinci".

+	depends on ARCH_DAVINCI_DMx

-comment "DA8xx/OMAP-L1x USB support"
-	depends on USB_MUSB_HDRC&&  ARCH_DAVINCI_DA8XX
+config USB_MUSB_DA8XX
+	bool "Support for DaVinci DA8xx"

   DA8xx is not DaVinci -- please keep the old name.

@@ -158,7 +138,6 @@ config USB_MUSB_HDRC_HCD
  config MUSB_PIO_ONLY
  	bool 'Disable DMA (always use PIO)'
  	depends on USB_MUSB_HDRC
-	default USB_TUSB6010 || ARCH_DAVINCI_DA8XX || USB_MUSB_AM35X

   Why drop the default and not modify it?

@@ -171,21 +150,21 @@ config MUSB_PIO_ONLY
  config USB_INVENTRA_DMA
  	bool
  	depends on USB_MUSB_HDRC&&  !MUSB_PIO_ONLY
-	default ARCH_OMAP2430 || ARCH_OMAP3 || BLACKFIN || ARCH_OMAP4
+	default USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN || USB_MUSB_AM35X

   AM35x has CPPI 4.1 DMA -- please remove AM35x dependency.

  	help
  	  Enable DMA transfers using Mentor's engine.

  config USB_TI_CPPI_DMA
  	bool
  	depends on USB_MUSB_HDRC&&  !MUSB_PIO_ONLY
-	default ARCH_DAVINCI
+	default USB_MUSB_DAVINCI_DMx || USB_MUSB_DAVINCI_DA8XX

   DA8xx has CPPI 4.1 DMA, not CPPI 3.0 -- please remove DA8xx dependency.

WBR, Sergei
--
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