mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
be2dbb09a0
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>
22 lines
575 B
C
22 lines
575 B
C
/*
|
|
* Copyright (C) ST-Ericsson SA 2011
|
|
*
|
|
* Author: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
|
|
* License terms: GNU General Public License (GPL) version 2
|
|
*/
|
|
#ifndef __ASM_ARCH_USB_H
|
|
#define __ASM_ARCH_USB_H
|
|
|
|
#include <linux/dmaengine.h>
|
|
|
|
#define UX500_MUSB_DMA_NUM_RX_TX_CHANNELS 8
|
|
|
|
struct ux500_musb_board_data {
|
|
void **dma_rx_param_array;
|
|
void **dma_tx_param_array;
|
|
bool (*dma_filter)(struct dma_chan *chan, void *filter_param);
|
|
};
|
|
|
|
void ux500_add_usb(struct device *parent, resource_size_t base,
|
|
int irq, int *dma_rx_cfg, int *dma_tx_cfg);
|
|
#endif
|