]> Pileus Git - ~andy/linux/blobdiff - include/linux/i2c/twl4030.h
MFD: TWL4030: Add audio_mclk to the codec platform data
[~andy/linux] / include / linux / i2c / twl4030.h
index 508824ee35e6e4bea836d0a42d40a83dc42a570b..5306a759cbdede6e70245440a5140f2df7821e03 100644 (file)
@@ -401,6 +401,24 @@ struct twl4030_power_data {
 
 extern void twl4030_power_init(struct twl4030_power_data *triton2_scripts);
 
+struct twl4030_codec_audio_data {
+       unsigned int    audio_mclk;
+       unsigned int ramp_delay_value;
+       unsigned int hs_extmute:1;
+       void (*set_hs_extmute)(int mute);
+};
+
+struct twl4030_codec_vibra_data {
+       unsigned int    audio_mclk;
+       unsigned int    coexist;
+};
+
+struct twl4030_codec_data {
+       unsigned int    audio_mclk;
+       struct twl4030_codec_audio_data         *audio;
+       struct twl4030_codec_vibra_data         *vibra;
+};
+
 struct twl4030_platform_data {
        unsigned                                irq_base, irq_end;
        struct twl4030_bci_platform_data        *bci;
@@ -409,6 +427,7 @@ struct twl4030_platform_data {
        struct twl4030_keypad_data              *keypad;
        struct twl4030_usb_data                 *usb;
        struct twl4030_power_data               *power;
+       struct twl4030_codec_data               *codec;
 
        /* LDO regulators */
        struct regulator_init_data              *vdac;