diff options
Diffstat (limited to 'drivers/usb/musb/Kconfig')
-rw-r--r-- | drivers/usb/musb/Kconfig | 59 |
1 files changed, 34 insertions, 25 deletions
diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig index 07a03460a598..84a022411e38 100644 --- a/drivers/usb/musb/Kconfig +++ b/drivers/usb/musb/Kconfig | |||
@@ -6,7 +6,6 @@ | |||
6 | # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller | 6 | # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller |
7 | config USB_MUSB_HDRC | 7 | config USB_MUSB_HDRC |
8 | depends on USB && USB_GADGET | 8 | depends on USB && USB_GADGET |
9 | depends on (ARM || (BF54x && !BF544) || (BF52x && !BF522 && !BF523)) | ||
10 | select NOP_USB_XCEIV if (ARCH_DAVINCI || MACH_OMAP3EVM || BLACKFIN) | 9 | select NOP_USB_XCEIV if (ARCH_DAVINCI || MACH_OMAP3EVM || BLACKFIN) |
11 | select TWL4030_USB if MACH_OMAP_3430SDP | 10 | select TWL4030_USB if MACH_OMAP_3430SDP |
12 | select TWL6030_USB if MACH_OMAP_4430SDP || MACH_OMAP4_PANDA | 11 | select TWL6030_USB if MACH_OMAP_4430SDP || MACH_OMAP4_PANDA |
@@ -45,7 +44,6 @@ config USB_MUSB_DA8XX | |||
45 | 44 | ||
46 | config USB_MUSB_TUSB6010 | 45 | config USB_MUSB_TUSB6010 |
47 | tristate "TUSB6010" | 46 | tristate "TUSB6010" |
48 | depends on ARCH_OMAP | ||
49 | 47 | ||
50 | config USB_MUSB_OMAP2PLUS | 48 | config USB_MUSB_OMAP2PLUS |
51 | tristate "OMAP2430 and onwards" | 49 | tristate "OMAP2430 and onwards" |
@@ -65,46 +63,57 @@ config USB_MUSB_UX500 | |||
65 | 63 | ||
66 | endchoice | 64 | endchoice |
67 | 65 | ||
68 | config MUSB_PIO_ONLY | 66 | choice |
69 | bool 'Disable DMA (always use PIO)' | 67 | prompt 'MUSB DMA mode' |
70 | depends on USB_MUSB_HDRC | 68 | default USB_UX500_DMA if USB_MUSB_UX500 |
71 | default USB_MUSB_TUSB6010 || USB_MUSB_DA8XX || USB_MUSB_AM35X | 69 | default USB_INVENTRA_DMA if USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN |
70 | default USB_TI_CPPI_DMA if USB_MUSB_DAVINCI | ||
71 | default USB_TUSB_OMAP_DMA if USB_MUSB_TUSB6010 | ||
72 | default MUSB_PIO_ONLY if USB_MUSB_TUSB6010 || USB_MUSB_DA8XX || USB_MUSB_AM35X | ||
72 | help | 73 | help |
73 | All data is copied between memory and FIFO by the CPU. | 74 | Unfortunately, only one option can be enabled here. Ideally one |
74 | DMA controllers are ignored. | 75 | should be able to build all these drivers into one kernel to |
75 | 76 | allow using DMA on multiplatform kernels. | |
76 | Do not select 'n' here unless DMA support for your SOC or board | ||
77 | is unavailable (or unstable). When DMA is enabled at compile time, | ||
78 | you can still disable it at run time using the "use_dma=n" module | ||
79 | parameter. | ||
80 | 77 | ||
81 | config USB_UX500_DMA | 78 | config USB_UX500_DMA |
82 | bool | 79 | bool 'ST Ericsson U8500 and U5500' |
83 | depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY | 80 | depends on USB_MUSB_HDRC |
84 | default USB_MUSB_UX500 | 81 | depends on USB_MUSB_UX500 |
85 | help | 82 | help |
86 | Enable DMA transfers on UX500 platforms. | 83 | Enable DMA transfers on UX500 platforms. |
87 | 84 | ||
88 | config USB_INVENTRA_DMA | 85 | config USB_INVENTRA_DMA |
89 | bool | 86 | bool 'Inventra' |
90 | depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY | 87 | depends on USB_MUSB_HDRC |
91 | default USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN | 88 | depends on USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN |
92 | help | 89 | help |
93 | Enable DMA transfers using Mentor's engine. | 90 | Enable DMA transfers using Mentor's engine. |
94 | 91 | ||
95 | config USB_TI_CPPI_DMA | 92 | config USB_TI_CPPI_DMA |
96 | bool | 93 | bool 'TI CPPI (Davinci)' |
97 | depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY | 94 | depends on USB_MUSB_HDRC |
98 | default USB_MUSB_DAVINCI | 95 | depends on USB_MUSB_DAVINCI |
99 | help | 96 | help |
100 | Enable DMA transfers when TI CPPI DMA is available. | 97 | Enable DMA transfers when TI CPPI DMA is available. |
101 | 98 | ||
102 | config USB_TUSB_OMAP_DMA | 99 | config USB_TUSB_OMAP_DMA |
103 | bool | 100 | bool 'TUSB 6010' |
104 | depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY | 101 | depends on USB_MUSB_HDRC |
105 | depends on USB_MUSB_TUSB6010 | 102 | depends on USB_MUSB_TUSB6010 |
106 | depends on ARCH_OMAP | 103 | depends on ARCH_OMAP |
107 | default y | ||
108 | help | 104 | help |
109 | Enable DMA transfers on TUSB 6010 when OMAP DMA is available. | 105 | Enable DMA transfers on TUSB 6010 when OMAP DMA is available. |
110 | 106 | ||
107 | config MUSB_PIO_ONLY | ||
108 | bool 'Disable DMA (always use PIO)' | ||
109 | depends on USB_MUSB_HDRC | ||
110 | help | ||
111 | All data is copied between memory and FIFO by the CPU. | ||
112 | DMA controllers are ignored. | ||
113 | |||
114 | Do not choose this unless DMA support for your SOC or board | ||
115 | is unavailable (or unstable). When DMA is enabled at compile time, | ||
116 | you can still disable it at run time using the "use_dma=n" module | ||
117 | parameter. | ||
118 | |||
119 | endchoice | ||