mb/google/drallion: Turn off HDMI power when enter s0ix and S5

Turn off HDMI power when enter s0ix and S5.

BUG=b:143057255
BRANCH=N/A
TEST=Measure the power on GPP_E16 under s0ix and S5

Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com>
Change-Id: I580e6094d48663d5c208fd82c7744485d899bcc1
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36224
Reviewed-by: Mathew King <mathewk@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Eric Lai 2019-10-22 12:17:05 +08:00 committed by Patrick Georgi
parent 1966b5c800
commit f185779a89
1 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,7 @@
#define CAM_EN GPP_B11 /* Active low */
#define TS_PD GPP_E7
#define HDMI_PD GPP_E16
/* Method called from LPIT prior to enter s0ix state */
Method (MS0X, 1)
@ -22,9 +23,13 @@ Method (MS0X, 1)
If (Arg0) {
/* Turn off camera power */
\_SB.PCI0.STXS (CAM_EN)
/* Turn off HDMI power */
\_SB.PCI0.CTXS (HDMI_PD)
} Else {
/* Turn on camera power */
\_SB.PCI0.CTXS (CAM_EN)
/* Turn on HDMI power */
\_SB.PCI0.STXS (HDMI_PD)
}
}
@ -35,6 +40,8 @@ Method (MPTS, 1)
/* Clear touch screen pd pin to avoid leakage */
\_SB.PCI0.CTXS (TS_PD)
/* Clear HDMI power to avoid leakage */
\_SB.PCI0.CTXS (HDMI_PD)
}
/* Method called from _WAK prior to wakeup */