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