aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Miao <eric.miao@linaro.org>2011-09-08 17:24:01 -0700
committerEric Miao <eric.miao@linaro.org>2011-10-14 09:57:03 +0800
commit7bd46b11ce7a74d932f5218bfc4495b37ba9f544 (patch)
tree55cb99773df656fb280b9f6edc08059f844eba2e /include
parentd58931a349410e06ba2974fad8e6f949a5a6f278 (diff)
downloadlinux-linaro-7bd46b11ce7a74d932f5218bfc4495b37ba9f544.tar.gz
sound: add imx-sgtl5000
Signed-off-by: Richard Zhu <richard.zhu@linaro.org> Signed-off-by: Eric Miao <eric.miao@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fsl_devices.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h
index 4386d3c0f97..f82c91f8319 100644
--- a/include/linux/fsl_devices.h
+++ b/include/linux/fsl_devices.h
@@ -250,6 +250,32 @@ struct mpc8xx_pcmcia_ops {
int(*voltage_set)(int slot, int vcc, int vpp);
};
+/*
+ * This struct is to define the number of SSIs on a platform,
+ * DAM source port config, DAM external port config,
+ * regulator names, and other stuff audio needs.
+ */
+struct mxc_audio_platform_data {
+ int ssi_num;
+ int src_port;
+ int ext_port;
+
+ int intr_id_hp;
+ int ext_ram;
+ struct clk *ssi_clk[2];
+
+ int hp_gpio;
+ int hp_active_low; /* headphone irq is active loaw */
+
+ int sysclk;
+
+ int (*init) (void); /* board specific init */
+ int (*amp_enable) (int enable);
+ int (*clock_enable) (int enable);
+ int (*finit) (void); /* board specific finit */
+ void *priv; /* used by board specific functions */
+};
+
/* Returns non-zero if the current suspend operation would
* lead to a deep sleep (i.e. power removed from the core,
* instead of just the clock).