summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/usb-musb-ux500.h
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-05-15 13:51:43 +0400
committerLinus Walleij <linus.walleij@linaro.org>2013-06-04 13:12:02 +0400
commitbe2dbb09a014cba5691c8483ad2d0747d3eeb514 (patch)
treefb613c0e895caa3950c4ac61fc765589f946a697 /include/linux/platform_data/usb-musb-ux500.h
parent95e4bf98520c9a92cd1b87d12c89e8c60c5fe2ca (diff)
downloadlinux-be2dbb09a014cba5691c8483ad2d0747d3eeb514.tar.xz
usb: musb: ux500: move channel number knowledge into the driver
For all ux500 based platforms the maximum number of end-points are used. Move this knowledge into the driver so we can relinquish the burden from platform data. This also removes quite a bit of complexity from the driver and will aid us when we come to enable the driver for Device Tree. Cc: linux-usb@vger.kernel.org Acked-by: Felipe Balbi <balbi@ti.com> Acked-by: Fabio Baltieri <fabio.baltieri@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/platform_data/usb-musb-ux500.h')
-rw-r--r--include/linux/platform_data/usb-musb-ux500.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/platform_data/usb-musb-ux500.h b/include/linux/platform_data/usb-musb-ux500.h
index 4c1cc50a595a..dd9c83ac7de0 100644
--- a/include/linux/platform_data/usb-musb-ux500.h
+++ b/include/linux/platform_data/usb-musb-ux500.h
@@ -9,14 +9,11 @@
#include <linux/dmaengine.h>
-#define UX500_MUSB_DMA_NUM_RX_CHANNELS 8
-#define UX500_MUSB_DMA_NUM_TX_CHANNELS 8
+#define UX500_MUSB_DMA_NUM_RX_TX_CHANNELS 8
struct ux500_musb_board_data {
void **dma_rx_param_array;
void **dma_tx_param_array;
- u32 num_rx_channels;
- u32 num_tx_channels;
bool (*dma_filter)(struct dma_chan *chan, void *filter_param);
};