PMU: fix lpmp3 trigger when lss_51, 52 in D0i0
authorIllyas Mansoor <illyas.mansoor@intel.com>
Tue, 6 Sep 2011 17:33:42 +0000 (23:03 +0530)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:37:32 +0000 (12:37 -0800)
When voice call + mp3 is on enabling s0i1/LPMP3 causes
system hang.

This is due to the target config for LPMP3 was set
to get triggered if LSS_08/09 + LSS_51/52 are in D0i0
and rest in D0i3.

Fixed this by add check for LSS_51/52 to be in D0i3 before
triggering LPMP3 ie., only LSS_08/09 can be in D0i0 for
triggering LPMP3.

Change-Id: I03866e3aa5325149303902a80b591a88ea19ff63
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
arch/x86/platform/mfld/pmu.h

index 2a21fcd..5f96bd6 100644 (file)
        SSMSK(D0I3_MASK, PMU_SPI3_LSS_36-32) | \
        SSMSK(D0I3_MASK, PMU_UART2_LSS_41-32))
 
-#define LPMP3_TARGET_SSS3_MASK 0
+#define LPMP3_TARGET_SSS3_MASK ( \
+       SSMSK(D0I3_MASK, PMU_AUDIO_SSP0_LSS_51-48) | \
+       SSMSK(D0I3_MASK, PMU_AUDIO_SSP1_LSS_52-48))
 
 #define LPMP3_TARGET_SSS0 ( \
        SSMSK(D0I3_MASK, PMU_SDIO0_LSS_00) | \
        SSMSK(D0I3_MASK, PMU_SPI3_LSS_36-32) | \
        SSMSK(D0I1_MASK, PMU_UART2_LSS_41-32))
 
-#define LPMP3_TARGET_SSS3 0
+#define LPMP3_TARGET_SSS3 ( \
+       SSMSK(D0I3_MASK, PMU_AUDIO_SSP0_LSS_51-48) | \
+       SSMSK(D0I3_MASK, PMU_AUDIO_SSP1_LSS_52-48))
 
 #define IGNORE_SSS0 ( \
        SSMSK(D0I3_MASK, PMU_USB_HSIC_LSS_07) | \