diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-05-15 09:51:43 (GMT) |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-06-04 09:12:02 (GMT) |
commit | be2dbb09a014cba5691c8483ad2d0747d3eeb514 (patch) | |
tree | fb613c0e895caa3950c4ac61fc765589f946a697 /include | |
parent | 95e4bf98520c9a92cd1b87d12c89e8c60c5fe2ca (diff) | |
download | linux-fsl-qoriq-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')
-rw-r--r-- | include/linux/platform_data/usb-musb-ux500.h | 5 |
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 4c1cc50..dd9c83a 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); }; |