usb.h 630 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (C) ST-Ericsson SA 2011
  3. *
  4. * Author: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
  5. * License terms: GNU General Public License (GPL) version 2
  6. */
  7. #ifndef __ASM_ARCH_USB_H
  8. #define __ASM_ARCH_USB_H
  9. #include <linux/dmaengine.h>
  10. #define UX500_MUSB_DMA_NUM_RX_CHANNELS 8
  11. #define UX500_MUSB_DMA_NUM_TX_CHANNELS 8
  12. struct ux500_musb_board_data {
  13. void **dma_rx_param_array;
  14. void **dma_tx_param_array;
  15. u32 num_rx_channels;
  16. u32 num_tx_channels;
  17. bool (*dma_filter)(struct dma_chan *chan, void *filter_param);
  18. };
  19. void ux500_add_usb(resource_size_t base, int irq, int *dma_rx_cfg,
  20. int *dma_tx_cfg);
  21. #endif