board-mop500-audio.c 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright (C) ST-Ericsson SA 2010
  3. *
  4. * License terms: GNU General Public License (GPL), version 2
  5. */
  6. #include <linux/platform_device.h>
  7. #include <linux/init.h>
  8. #include <linux/gpio.h>
  9. #include <linux/platform_data/dma-ste-dma40.h>
  10. #include <linux/platform_data/asoc-ux500-msp.h>
  11. #include "ste-dma40-db8500.h"
  12. #include "board-mop500.h"
  13. static struct stedma40_chan_cfg msp0_dma_rx = {
  14. .high_priority = true,
  15. .dir = DMA_DEV_TO_MEM,
  16. .dev_type = DB8500_DMA_DEV31_MSP0_SLIM0_CH0,
  17. };
  18. static struct stedma40_chan_cfg msp0_dma_tx = {
  19. .high_priority = true,
  20. .dir = DMA_MEM_TO_DEV,
  21. .dev_type = DB8500_DMA_DEV31_MSP0_SLIM0_CH0,
  22. };
  23. struct msp_i2s_platform_data msp0_platform_data = {
  24. .id = 0,
  25. .msp_i2s_dma_rx = &msp0_dma_rx,
  26. .msp_i2s_dma_tx = &msp0_dma_tx,
  27. };
  28. static struct stedma40_chan_cfg msp1_dma_rx = {
  29. .high_priority = true,
  30. .dir = DMA_DEV_TO_MEM,
  31. .dev_type = DB8500_DMA_DEV30_MSP3,
  32. };
  33. static struct stedma40_chan_cfg msp1_dma_tx = {
  34. .high_priority = true,
  35. .dir = DMA_MEM_TO_DEV,
  36. .dev_type = DB8500_DMA_DEV30_MSP1,
  37. };
  38. struct msp_i2s_platform_data msp1_platform_data = {
  39. .id = 1,
  40. .msp_i2s_dma_rx = NULL,
  41. .msp_i2s_dma_tx = &msp1_dma_tx,
  42. };
  43. static struct stedma40_chan_cfg msp2_dma_rx = {
  44. .high_priority = true,
  45. .dir = DMA_DEV_TO_MEM,
  46. .dev_type = DB8500_DMA_DEV14_MSP2,
  47. };
  48. static struct stedma40_chan_cfg msp2_dma_tx = {
  49. .high_priority = true,
  50. .dir = DMA_MEM_TO_DEV,
  51. .dev_type = DB8500_DMA_DEV14_MSP2,
  52. .use_fixed_channel = true,
  53. .phy_channel = 1,
  54. };
  55. struct msp_i2s_platform_data msp2_platform_data = {
  56. .id = 2,
  57. .msp_i2s_dma_rx = &msp2_dma_rx,
  58. .msp_i2s_dma_tx = &msp2_dma_tx,
  59. };
  60. struct msp_i2s_platform_data msp3_platform_data = {
  61. .id = 3,
  62. .msp_i2s_dma_rx = &msp1_dma_rx,
  63. .msp_i2s_dma_tx = NULL,
  64. };