board-mop500-audio.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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/pinctrl-nomadik.h>
  10. #include <linux/platform_data/dma-ste-dma40.h>
  11. #include "devices.h"
  12. #include "irqs.h"
  13. #include <linux/platform_data/asoc-ux500-msp.h>
  14. #include "ste-dma40-db8500.h"
  15. #include "board-mop500.h"
  16. #include "devices-db8500.h"
  17. static struct stedma40_chan_cfg msp0_dma_rx = {
  18. .high_priority = true,
  19. .dir = DMA_DEV_TO_MEM,
  20. .dev_type = DB8500_DMA_DEV31_MSP0_SLIM0_CH0,
  21. };
  22. static struct stedma40_chan_cfg msp0_dma_tx = {
  23. .high_priority = true,
  24. .dir = DMA_MEM_TO_DEV,
  25. .dev_type = DB8500_DMA_DEV31_MSP0_SLIM0_CH0,
  26. };
  27. struct msp_i2s_platform_data msp0_platform_data = {
  28. .id = MSP_I2S_0,
  29. .msp_i2s_dma_rx = &msp0_dma_rx,
  30. .msp_i2s_dma_tx = &msp0_dma_tx,
  31. };
  32. static struct stedma40_chan_cfg msp1_dma_rx = {
  33. .high_priority = true,
  34. .dir = DMA_DEV_TO_MEM,
  35. .dev_type = DB8500_DMA_DEV30_MSP3,
  36. };
  37. static struct stedma40_chan_cfg msp1_dma_tx = {
  38. .high_priority = true,
  39. .dir = DMA_MEM_TO_DEV,
  40. .dev_type = DB8500_DMA_DEV30_MSP1,
  41. };
  42. struct msp_i2s_platform_data msp1_platform_data = {
  43. .id = MSP_I2S_1,
  44. .msp_i2s_dma_rx = NULL,
  45. .msp_i2s_dma_tx = &msp1_dma_tx,
  46. };
  47. static struct stedma40_chan_cfg msp2_dma_rx = {
  48. .high_priority = true,
  49. .dir = DMA_DEV_TO_MEM,
  50. .dev_type = DB8500_DMA_DEV14_MSP2,
  51. };
  52. static struct stedma40_chan_cfg msp2_dma_tx = {
  53. .high_priority = true,
  54. .dir = DMA_MEM_TO_DEV,
  55. .dev_type = DB8500_DMA_DEV14_MSP2,
  56. .use_fixed_channel = true,
  57. .phy_channel = 1,
  58. };
  59. struct msp_i2s_platform_data msp2_platform_data = {
  60. .id = MSP_I2S_2,
  61. .msp_i2s_dma_rx = &msp2_dma_rx,
  62. .msp_i2s_dma_tx = &msp2_dma_tx,
  63. };
  64. struct msp_i2s_platform_data msp3_platform_data = {
  65. .id = MSP_I2S_3,
  66. .msp_i2s_dma_rx = &msp1_dma_rx,
  67. .msp_i2s_dma_tx = NULL,
  68. };