s3c-dma-pl330.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright (C) 2010 Samsung Electronics Co. Ltd.
  3. * Jaswinder Singh <jassi.brar@samsung.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. */
  10. #ifndef __S3C_DMA_PL330_H_
  11. #define __S3C_DMA_PL330_H_
  12. #define S3C2410_DMAF_AUTOSTART (1 << 0)
  13. #define S3C2410_DMAF_CIRCULAR (1 << 1)
  14. /*
  15. * PL330 can assign any channel to communicate with
  16. * any of the peripherals attched to the DMAC.
  17. * For the sake of consistency across client drivers,
  18. * We keep the channel names unchanged and only add
  19. * missing peripherals are added.
  20. * Order is not important since S3C PL330 API driver
  21. * use these just as IDs.
  22. */
  23. enum dma_ch {
  24. DMACH_UART0_RX,
  25. DMACH_UART0_TX,
  26. DMACH_UART1_RX,
  27. DMACH_UART1_TX,
  28. DMACH_UART2_RX,
  29. DMACH_UART2_TX,
  30. DMACH_UART3_RX,
  31. DMACH_UART3_TX,
  32. DMACH_IRDA,
  33. DMACH_I2S0_RX,
  34. DMACH_I2S0_TX,
  35. DMACH_I2S0S_TX,
  36. DMACH_I2S1_RX,
  37. DMACH_I2S1_TX,
  38. DMACH_I2S2_RX,
  39. DMACH_I2S2_TX,
  40. DMACH_SPI0_RX,
  41. DMACH_SPI0_TX,
  42. DMACH_SPI1_RX,
  43. DMACH_SPI1_TX,
  44. DMACH_SPI2_RX,
  45. DMACH_SPI2_TX,
  46. DMACH_AC97_MICIN,
  47. DMACH_AC97_PCMIN,
  48. DMACH_AC97_PCMOUT,
  49. DMACH_EXTERNAL,
  50. DMACH_PWM,
  51. DMACH_SPDIF,
  52. DMACH_HSI_RX,
  53. DMACH_HSI_TX,
  54. DMACH_PCM0_TX,
  55. DMACH_PCM0_RX,
  56. DMACH_PCM1_TX,
  57. DMACH_PCM1_RX,
  58. DMACH_PCM2_TX,
  59. DMACH_PCM2_RX,
  60. DMACH_MSM_REQ3,
  61. DMACH_MSM_REQ2,
  62. DMACH_MSM_REQ1,
  63. DMACH_MSM_REQ0,
  64. /* END Marker, also used to denote a reserved channel */
  65. DMACH_MAX,
  66. };
  67. static inline bool s3c_dma_has_circular(void)
  68. {
  69. return true;
  70. }
  71. #include <plat/dma.h>
  72. #endif /* __S3C_DMA_PL330_H_ */