ste-dma40-db8500.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. * arch/arm/mach-ux500/ste_dma40_db8500.h
  3. * DB8500-SoC-specific configuration for DMA40
  4. *
  5. * Copyright (C) ST-Ericsson 2007-2010
  6. * License terms: GNU General Public License (GPL) version 2
  7. * Author: Per Friden <per.friden@stericsson.com>
  8. * Author: Jonas Aaberg <jonas.aberg@stericsson.com>
  9. */
  10. #ifndef STE_DMA40_DB8500_H
  11. #define STE_DMA40_DB8500_H
  12. #define DB8500_DMA_NR_DEV 64
  13. /*
  14. * Unless otherwise specified, all channels numbers are used for
  15. * TX & RX, and can be used for either source or destination
  16. * channels.
  17. */
  18. enum dma_dev_type {
  19. DB8500_DMA_DEV0_SPI0 = 0,
  20. DB8500_DMA_DEV1_SD_MMC0 = 1,
  21. DB8500_DMA_DEV2_SD_MMC1 = 2,
  22. DB8500_DMA_DEV3_SD_MMC2 = 3,
  23. DB8500_DMA_DEV4_I2C1 = 4,
  24. DB8500_DMA_DEV5_I2C3 = 5,
  25. DB8500_DMA_DEV6_I2C2 = 6,
  26. DB8500_DMA_DEV7_I2C4 = 7, /* Only on V1 and later */
  27. DB8500_DMA_DEV8_SSP0 = 8,
  28. DB8500_DMA_DEV9_SSP1 = 9,
  29. DB8500_DMA_DEV10_MCDE_RX = 10, /* RX only */
  30. DB8500_DMA_DEV11_UART2 = 11,
  31. DB8500_DMA_DEV12_UART1 = 12,
  32. DB8500_DMA_DEV13_UART0 = 13,
  33. DB8500_DMA_DEV14_MSP2 = 14,
  34. DB8500_DMA_DEV15_I2C0 = 15,
  35. DB8500_DMA_DEV16_USB_OTG_IEP_AND_OEP_7_15 = 16,
  36. DB8500_DMA_DEV17_USB_OTG_IEP_AND_OEP_6_14 = 17,
  37. DB8500_DMA_DEV18_USB_OTG_IEP_AND_OEP_5_13 = 18,
  38. DB8500_DMA_DEV19_USB_OTG_IEP_AND_OEP_4_12 = 19,
  39. DB8500_DMA_DEV20_SLIM0_CH0_HSI_CH0 = 20,
  40. DB8500_DMA_DEV21_SLIM0_CH1_HSI_CH1 = 21,
  41. DB8500_DMA_DEV22_SLIM0_CH2_HSI_CH2 = 22,
  42. DB8500_DMA_DEV23_SLIM0_CH3_HSI_CH3 = 23,
  43. DB8500_DMA_DEV24_SXA0 = 24,
  44. DB8500_DMA_DEV25_SXA1 = 25,
  45. DB8500_DMA_DEV26_SXA2 = 26,
  46. DB8500_DMA_DEV27_SXA3 = 27,
  47. DB8500_DMA_DEV28_SD_MM2 = 28,
  48. DB8500_DMA_DEV29_SD_MM0 = 29,
  49. DB8500_DMA_DEV30_MSP1 = 30,
  50. /* On DB8500v2, MSP3 RX replaces MSP1 RX */
  51. DB8500_DMA_DEV30_MSP3 = 30,
  52. DB8500_DMA_DEV31_MSP0_SLIM0_CH0 = 31,
  53. DB8500_DMA_DEV32_SD_MM1 = 32,
  54. DB8500_DMA_DEV33_SPI2 = 33,
  55. DB8500_DMA_DEV34_I2C3_RX2_TX2 = 34,
  56. DB8500_DMA_DEV35_SPI1 = 35,
  57. DB8500_DMA_DEV36_USB_OTG_IEP_AND_OEP_3_11 = 36,
  58. DB8500_DMA_DEV37_USB_OTG_IEP_AND_OEP_2_10 = 37,
  59. DB8500_DMA_DEV38_USB_OTG_IEP_AND_OEP_1_9 = 38,
  60. DB8500_DMA_DEV39_USB_OTG_IEP_AND_OEP_8 = 39,
  61. DB8500_DMA_DEV40_SPI3 = 40,
  62. DB8500_DMA_DEV41_SD_MM3 = 41,
  63. DB8500_DMA_DEV42_SD_MM4 = 42,
  64. DB8500_DMA_DEV43_SD_MM5 = 43,
  65. DB8500_DMA_DEV44_SXA4 = 44,
  66. DB8500_DMA_DEV45_SXA5 = 45,
  67. DB8500_DMA_DEV46_SLIM0_CH8_SRC_SXA6 = 46,
  68. DB8500_DMA_DEV47_SLIM0_CH9_SRC_SXA7 = 47,
  69. DB8500_DMA_DEV48_CAC1 = 48,
  70. DB8500_DMA_DEV49_CAC1_TX_HAC1_TX = 49, /* TX only */
  71. DB8500_DMA_DEV50_HAC1_TX = 50, /* TX only */
  72. DB8500_DMA_MEMCPY_TX_0 = 51, /* TX only */
  73. DB8500_DMA_DEV52_SLIM0_CH4_HSI_CH4 = 52,
  74. DB8500_DMA_DEV53_SLIM0_CH5_HSI_CH5 = 53,
  75. DB8500_DMA_DEV54_SLIM0_CH6_HSI_CH6 = 54,
  76. DB8500_DMA_DEV55_SLIM0_CH7_HSI_CH7 = 55,
  77. /* 56 -> 60 are channels reserved for memcpy only */
  78. DB8500_DMA_DEV61_CAC0 = 61,
  79. DB8500_DMA_DEV62_CAC0_TX_HAC0_TX = 62, /* TX only */
  80. DB8500_DMA_DEV63_HAC0_TX = 63, /* TX only */
  81. };
  82. #endif