default y
-config USB_INVENTRA_FIFO
+config MUSB_PIO_ONLY
bool 'Disable DMA (always use PIO)'
depends on USB_MUSB_HDRC
default y if USB_TUSB6010
config USB_INVENTRA_DMA
bool
- depends on USB_MUSB_HDRC && !USB_INVENTRA_FIFO
+ depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
default ARCH_OMAP2430 || ARCH_OMAP343X
help
Enable DMA transfers using Mentor's engine.
config USB_TI_CPPI_DMA
bool
- depends on USB_MUSB_HDRC && !USB_INVENTRA_FIFO
+ depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
default ARCH_DAVINCI
help
Enable DMA transfers when TI CPPI DMA is available.
config USB_TUSB_OMAP_DMA
bool
- depends on USB_MUSB_HDRC && !USB_INVENTRA_FIFO
+ depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
depends on USB_TUSB6010
depends on ARCH_OMAP
default y
# the kconfig must guarantee that only one of the
# possible I/O schemes will be enabled at a time ...
-# PIO (INVENTRA_FIFO), or DMA (several potential schemes).
+# PIO only, or DMA (several potential schemes).
# though PIO is always there to back up DMA, and for ep0
-ifneq ($(CONFIG_USB_INVENTRA_FIFO),y)
+ifneq ($(CONFIG_MUSB_PIO_ONLY),y)
ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
musb_hdrc-objs += musbhsdma.o
#define DMA_ADDR_INVALID (~(dma_addr_t)0)
-#ifndef CONFIG_USB_INVENTRA_FIFO
+#ifndef CONFIG_MUSB_PIO_ONLY
#define is_dma_capable() (1)
#else
#define is_dma_capable() (0)
epnum, musb_ep->packet_sz, fifo_count,
csr);
-#ifndef CONFIG_USB_INVENTRA_FIFO
+#ifndef CONFIG_MUSB_PIO_ONLY
if (is_dma_capable() && musb_ep->dma) {
struct dma_controller *c = musb->dma_controller;
code = sprintf(buffer,
"Options: "
-#ifdef CONFIG_USB_INVENTRA_FIFO
+#ifdef CONFIG_MUSB_PIO_ONLY
"pio"
#elif defined(CONFIG_USB_TI_CPPI_DMA)
"cppi-dma"
}
-#ifndef CONFIG_USB_INVENTRA_FIFO
+#ifndef CONFIG_MUSB_PIO_ONLY
static int __initdata use_dma = 1;
/* "modprobe ... use_dma=0" etc */
goto fail2;
}
-#ifndef CONFIG_USB_INVENTRA_FIFO
+#ifndef CONFIG_MUSB_PIO_ONLY
if (use_dma && dev->dma_mask) {
struct dma_controller *c;
* bridge to a platform device; this driver then suffices.
*/
-#ifndef CONFIG_USB_INVENTRA_FIFO
+#ifndef CONFIG_MUSB_PIO_ONLY
static u64 *orig_dma_mask;
#endif
return -ENOMEM;
}
-#ifndef CONFIG_USB_INVENTRA_FIFO
+#ifndef CONFIG_MUSB_PIO_ONLY
/* clobbered by use_dma=n */
orig_dma_mask = dev->dma_mask;
#endif
musb_free(musb);
iounmap(ctrl_base);
device_init_wakeup(&pdev->dev, 0);
-#ifndef CONFIG_USB_INVENTRA_FIFO
+#ifndef CONFIG_MUSB_PIO_ONLY
pdev->dev.dma_mask = orig_dma_mask;
#endif
return 0;
#endif
pr_info("%s: version " MUSB_VERSION ", "
-#ifdef CONFIG_USB_INVENTRA_FIFO
+#ifdef CONFIG_MUSB_PIO_ONLY
"pio"
#elif defined(CONFIG_USB_TI_CPPI_DMA)
"cppi-dma"