Ola Lilja | c0af14d | 2012-04-20 11:32:59 +0200 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) ST-Ericsson SA 2010 |
| 3 | * |
| 4 | * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson |
| 5 | * License terms: GNU General Public License (GPL), version 2. |
| 6 | */ |
| 7 | |
| 8 | #ifndef __MSP_H |
| 9 | #define __MSP_H |
| 10 | |
| 11 | #include <plat/ste_dma40.h> |
| 12 | |
| 13 | enum msp_i2s_id { |
| 14 | MSP_I2S_0 = 0, |
| 15 | MSP_I2S_1, |
| 16 | MSP_I2S_2, |
| 17 | MSP_I2S_3, |
| 18 | }; |
| 19 | |
| 20 | /* Platform data structure for a MSP I2S-device */ |
| 21 | struct msp_i2s_platform_data { |
| 22 | enum msp_i2s_id id; |
| 23 | struct stedma40_chan_cfg *msp_i2s_dma_rx; |
| 24 | struct stedma40_chan_cfg *msp_i2s_dma_tx; |
| 25 | int (*msp_i2s_init) (void); |
| 26 | int (*msp_i2s_exit) (void); |
| 27 | }; |
| 28 | |
| 29 | #endif |