2 * Copyright (C) ST-Ericsson SA 2010
4 * License terms: GNU General Public License (GPL), version 2
7 #include <linux/platform_device.h>
8 #include <linux/init.h>
9 #include <linux/gpio.h>
10 #include <linux/platform_data/pinctrl-nomadik.h>
11 #include <linux/platform_data/dma-ste-dma40.h>
15 #include <linux/platform_data/asoc-ux500-msp.h>
17 #include "ste-dma40-db8500.h"
18 #include "board-mop500.h"
19 #include "devices-db8500.h"
21 static struct stedma40_chan_cfg msp0_dma_rx = {
22 .high_priority = true,
23 .dir = DMA_DEV_TO_MEM,
24 .dev_type = DB8500_DMA_DEV31_MSP0_SLIM0_CH0,
27 static struct stedma40_chan_cfg msp0_dma_tx = {
28 .high_priority = true,
29 .dir = DMA_MEM_TO_DEV,
30 .dev_type = DB8500_DMA_DEV31_MSP0_SLIM0_CH0,
33 struct msp_i2s_platform_data msp0_platform_data = {
35 .msp_i2s_dma_rx = &msp0_dma_rx,
36 .msp_i2s_dma_tx = &msp0_dma_tx,
39 static struct stedma40_chan_cfg msp1_dma_rx = {
40 .high_priority = true,
41 .dir = DMA_DEV_TO_MEM,
42 .dev_type = DB8500_DMA_DEV30_MSP3,
45 static struct stedma40_chan_cfg msp1_dma_tx = {
46 .high_priority = true,
47 .dir = DMA_MEM_TO_DEV,
48 .dev_type = DB8500_DMA_DEV30_MSP1,
51 struct msp_i2s_platform_data msp1_platform_data = {
53 .msp_i2s_dma_rx = NULL,
54 .msp_i2s_dma_tx = &msp1_dma_tx,
57 static struct stedma40_chan_cfg msp2_dma_rx = {
58 .high_priority = true,
59 .dir = DMA_DEV_TO_MEM,
60 .dev_type = DB8500_DMA_DEV14_MSP2,
63 static struct stedma40_chan_cfg msp2_dma_tx = {
64 .high_priority = true,
65 .dir = DMA_MEM_TO_DEV,
66 .dev_type = DB8500_DMA_DEV14_MSP2,
67 .use_fixed_channel = true,
71 struct msp_i2s_platform_data msp2_platform_data = {
73 .msp_i2s_dma_rx = &msp2_dma_rx,
74 .msp_i2s_dma_tx = &msp2_dma_tx,
77 struct msp_i2s_platform_data msp3_platform_data = {
79 .msp_i2s_dma_rx = &msp1_dma_rx,
80 .msp_i2s_dma_tx = NULL,