summaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-09 15:22:16 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-09 15:22:16 (GMT)
commitd5767418393f55ac5f01d372c9887c7267aa59d9 (patch)
tree2e94abc0bb9ff41dc3618060c62f49b070ba5d7c /include/linux/platform_data
parent473e8b323c97d1e63ca307b40468addbabfe511a (diff)
parenteb044c48446f676ae5c38b30a2e2165742a52f4a (diff)
downloadlinux-fsl-qoriq-d5767418393f55ac5f01d372c9887c7267aa59d9.tar.xz
Merge remote-tracking branch 'asoc/topic/omap' into asoc-next
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/omap-twl4030.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/platform_data/omap-twl4030.h b/include/linux/platform_data/omap-twl4030.h
index c7bef78..ee60ef7 100644
--- a/include/linux/platform_data/omap-twl4030.h
+++ b/include/linux/platform_data/omap-twl4030.h
@@ -25,8 +25,34 @@
#ifndef _OMAP_TWL4030_H_
#define _OMAP_TWL4030_H_
+/* To select if only one channel is connected in a stereo port */
+#define OMAP_TWL4030_LEFT (1 << 0)
+#define OMAP_TWL4030_RIGHT (1 << 1)
+
struct omap_tw4030_pdata {
const char *card_name;
+ /* Voice port is connected to McBSP3 */
+ bool voice_connected;
+
+ /* The driver will parse the connection flags if this flag is set */
+ bool custom_routing;
+ /* Flags to indicate connected audio ports. */
+ u8 has_hs;
+ u8 has_hf;
+ u8 has_predriv;
+ u8 has_carkit;
+ bool has_ear;
+
+ bool has_mainmic;
+ bool has_submic;
+ bool has_hsmic;
+ bool has_carkitmic;
+ bool has_digimic0;
+ bool has_digimic1;
+ u8 has_linein;
+
+ /* Jack detect GPIO or <= 0 if it is not implemented */
+ int jack_detect;
};
#endif /* _OMAP_TWL4030_H_ */