diff options
author | Ola Lilja <ola.o.lilja@stericsson.com> | 2012-04-20 13:32:59 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-04-24 12:26:47 +0400 |
commit | c0af14d3212a54c6a11759cd6b78e755c68714a1 (patch) | |
tree | d3957e1fc6736d3514fd217ecc0b540316599123 /arch/arm/mach-ux500/include/mach | |
parent | a60b57eddaa8af6c02cf7bbeb58ebf82881f08ac (diff) | |
download | linux-c0af14d3212a54c6a11759cd6b78e755c68714a1.tar.xz |
ARM: ux500: Add support for MSP I2S-devices
Create devices for the MSP-blocks (MSP0, MSP1, MSP2 and MSP3)
and associate it with the correct clocks in the clock-framework.
Signed-off-by: Ola Lilja <ola.o.lilja@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-ux500/include/mach')
-rw-r--r-- | arch/arm/mach-ux500/include/mach/msp.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/include/mach/msp.h b/arch/arm/mach-ux500/include/mach/msp.h new file mode 100644 index 000000000000..798be19129ef --- /dev/null +++ b/arch/arm/mach-ux500/include/mach/msp.h @@ -0,0 +1,29 @@ +/* + * Copyright (C) ST-Ericsson SA 2010 + * + * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson + * License terms: GNU General Public License (GPL), version 2. + */ + +#ifndef __MSP_H +#define __MSP_H + +#include <plat/ste_dma40.h> + +enum msp_i2s_id { + MSP_I2S_0 = 0, + MSP_I2S_1, + MSP_I2S_2, + MSP_I2S_3, +}; + +/* Platform data structure for a MSP I2S-device */ +struct msp_i2s_platform_data { + enum msp_i2s_id id; + struct stedma40_chan_cfg *msp_i2s_dma_rx; + struct stedma40_chan_cfg *msp_i2s_dma_tx; + int (*msp_i2s_init) (void); + int (*msp_i2s_exit) (void); +}; + +#endif |