#define   AUDIO_CP_READY(trans)                ((1 << 1) << ((trans) * 4))
 #define   AUDIO_ELD_VALID(trans)       ((1 << 0) << ((trans) * 4))
 
+#define HSW_AUD_CHICKENBIT                     0x65f10
+#define   SKL_AUD_CODEC_WAKE_SIGNAL            (1 << 15)
+
 /* HSW Power Wells */
 #define HSW_PWR_WELL_BIOS                      0x45400 /* CTL1 */
 #define HSW_PWR_WELL_DRIVER                    0x45404 /* CTL2 */
 
        intel_display_power_put(dev_to_i915(dev), POWER_DOMAIN_AUDIO);
 }
 
+static void i915_audio_component_codec_wake_override(struct device *dev,
+                                                    bool enable)
+{
+       struct drm_i915_private *dev_priv = dev_to_i915(dev);
+       u32 tmp;
+
+       if (!IS_SKYLAKE(dev_priv))
+               return;
+
+       /*
+        * Enable/disable generating the codec wake signal, overriding the
+        * internal logic to generate the codec wake to controller.
+        */
+       tmp = I915_READ(HSW_AUD_CHICKENBIT);
+       tmp &= ~SKL_AUD_CODEC_WAKE_SIGNAL;
+       I915_WRITE(HSW_AUD_CHICKENBIT, tmp);
+       usleep_range(1000, 1500);
+
+       if (enable) {
+               tmp = I915_READ(HSW_AUD_CHICKENBIT);
+               tmp |= SKL_AUD_CODEC_WAKE_SIGNAL;
+               I915_WRITE(HSW_AUD_CHICKENBIT, tmp);
+               usleep_range(1000, 1500);
+       }
+}
+
 /* Get CDCLK in kHz  */
 static int i915_audio_component_get_cdclk_freq(struct device *dev)
 {
        .owner          = THIS_MODULE,
        .get_power      = i915_audio_component_get_power,
        .put_power      = i915_audio_component_put_power,
+       .codec_wake_override = i915_audio_component_codec_wake_override,
        .get_cdclk_freq = i915_audio_component_get_cdclk_freq,
 };
 
 
                struct module *owner;
                void (*get_power)(struct device *);
                void (*put_power)(struct device *);
+               void (*codec_wake_override)(struct device *, bool enable);
                int (*get_cdclk_freq)(struct device *);
        } *ops;
 };