summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ux500/include/mach/msp.h
diff options
context:
space:
mode:
authorOla Lilja2012-04-20 11:32:59 +0200
committerLinus Walleij2012-04-24 10:26:47 +0200
commitc0af14d3212a54c6a11759cd6b78e755c68714a1 (patch)
treed3957e1fc6736d3514fd217ecc0b540316599123 /arch/arm/mach-ux500/include/mach/msp.h
parentdrivers/gpio: gpio-nomadik: Add support for irqdomains (diff)
downloadkernel-qcow2-linux-c0af14d3212a54c6a11759cd6b78e755c68714a1.tar.gz
kernel-qcow2-linux-c0af14d3212a54c6a11759cd6b78e755c68714a1.tar.xz
kernel-qcow2-linux-c0af14d3212a54c6a11759cd6b78e755c68714a1.zip
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/msp.h')
-rw-r--r--arch/arm/mach-ux500/include/mach/msp.h29
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