Skip to content

Commit

Permalink
usb: musb: cleanup kconfig
Browse files Browse the repository at this point in the history
The whole thing depends on USB_MUSB_HDRC, just add an 'if'.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Felipe Contreras authored and Felipe Balbi committed Dec 20, 2011
1 parent 54a605f commit c6bde9b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions drivers/usb/musb/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ config USB_MUSB_HDRC
To compile this driver as a module, choose M here; the
module will be called "musb-hdrc".

if USB_MUSB_HDRC

choice
prompt "Platform Glue Layer"
depends on USB_MUSB_HDRC

config USB_MUSB_DAVINCI
tristate "DaVinci"
Expand Down Expand Up @@ -77,36 +78,31 @@ choice

config USB_UX500_DMA
bool 'ST Ericsson U8500 and U5500'
depends on USB_MUSB_HDRC
depends on USB_MUSB_UX500
help
Enable DMA transfers on UX500 platforms.

config USB_INVENTRA_DMA
bool 'Inventra'
depends on USB_MUSB_HDRC
depends on USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN
help
Enable DMA transfers using Mentor's engine.

config USB_TI_CPPI_DMA
bool 'TI CPPI (Davinci)'
depends on USB_MUSB_HDRC
depends on USB_MUSB_DAVINCI
help
Enable DMA transfers when TI CPPI DMA is available.

config USB_TUSB_OMAP_DMA
bool 'TUSB 6010'
depends on USB_MUSB_HDRC
depends on USB_MUSB_TUSB6010
depends on ARCH_OMAP
help
Enable DMA transfers on TUSB 6010 when OMAP DMA is available.

config MUSB_PIO_ONLY
bool 'Disable DMA (always use PIO)'
depends on USB_MUSB_HDRC
help
All data is copied between memory and FIFO by the CPU.
DMA controllers are ignored.
Expand All @@ -117,3 +113,5 @@ config MUSB_PIO_ONLY
parameter.

endchoice

endif # USB_MUSB_HDRC

0 comments on commit c6bde9b

Please sign in to comment.