dma-coh901318.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Platform data for the COH901318 DMA controller
  3. * Copyright (C) 2007-2013 ST-Ericsson
  4. * License terms: GNU General Public License (GPL) version 2
  5. */
  6. #ifndef PLAT_COH901318_H
  7. #define PLAT_COH901318_H
  8. #ifdef CONFIG_COH901318
  9. /* We only support the U300 DMA channels */
  10. #define U300_DMA_MSL_TX_0 0
  11. #define U300_DMA_MSL_TX_1 1
  12. #define U300_DMA_MSL_TX_2 2
  13. #define U300_DMA_MSL_TX_3 3
  14. #define U300_DMA_MSL_TX_4 4
  15. #define U300_DMA_MSL_TX_5 5
  16. #define U300_DMA_MSL_TX_6 6
  17. #define U300_DMA_MSL_RX_0 7
  18. #define U300_DMA_MSL_RX_1 8
  19. #define U300_DMA_MSL_RX_2 9
  20. #define U300_DMA_MSL_RX_3 10
  21. #define U300_DMA_MSL_RX_4 11
  22. #define U300_DMA_MSL_RX_5 12
  23. #define U300_DMA_MSL_RX_6 13
  24. #define U300_DMA_MMCSD_RX_TX 14
  25. #define U300_DMA_MSPRO_TX 15
  26. #define U300_DMA_MSPRO_RX 16
  27. #define U300_DMA_UART0_TX 17
  28. #define U300_DMA_UART0_RX 18
  29. #define U300_DMA_APEX_TX 19
  30. #define U300_DMA_APEX_RX 20
  31. #define U300_DMA_PCM_I2S0_TX 21
  32. #define U300_DMA_PCM_I2S0_RX 22
  33. #define U300_DMA_PCM_I2S1_TX 23
  34. #define U300_DMA_PCM_I2S1_RX 24
  35. #define U300_DMA_XGAM_CDI 25
  36. #define U300_DMA_XGAM_PDI 26
  37. #define U300_DMA_SPI_TX 27
  38. #define U300_DMA_SPI_RX 28
  39. #define U300_DMA_GENERAL_PURPOSE_0 29
  40. #define U300_DMA_GENERAL_PURPOSE_1 30
  41. #define U300_DMA_GENERAL_PURPOSE_2 31
  42. #define U300_DMA_GENERAL_PURPOSE_3 32
  43. #define U300_DMA_GENERAL_PURPOSE_4 33
  44. #define U300_DMA_GENERAL_PURPOSE_5 34
  45. #define U300_DMA_GENERAL_PURPOSE_6 35
  46. #define U300_DMA_GENERAL_PURPOSE_7 36
  47. #define U300_DMA_GENERAL_PURPOSE_8 37
  48. #define U300_DMA_UART1_TX 38
  49. #define U300_DMA_UART1_RX 39
  50. #define U300_DMA_DEVICE_CHANNELS 32
  51. #define U300_DMA_CHANNELS 40
  52. /**
  53. * coh901318_filter_id() - DMA channel filter function
  54. * @chan: dma channel handle
  55. * @chan_id: id of dma channel to be filter out
  56. *
  57. * In dma_request_channel() it specifies what channel id to be requested
  58. */
  59. bool coh901318_filter_id(struct dma_chan *chan, void *chan_id);
  60. #else
  61. static inline bool coh901318_filter_id(struct dma_chan *chan, void *chan_id)
  62. {
  63. return false;
  64. }
  65. #endif
  66. #endif /* PLAT_COH901318_H */