From 477942e2536ccadf77d4acfb6b91bb82e6771ad4 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Sat, 15 Jul 2017 14:13:37 -0700 Subject: mb/google/eve: Remove ACPI control of touchscreen power Change the touchscreen power control back to coreboot instead of under the ACPI _ON/_OFF methods, and switch the TOUCHSCREEN_STOP_L pin back to an output. This reverts previous changes to touchscreen GPIOs that were made to get back to a known good/working state. Having ACPI control these pins was resulting in a small percentage of touchscreen not being discovered at boot. This platform is not intending to use S0ix so the ACPI control is not needed. BUG=b:63718744 TEST=manual testing on Eve devices. Change-Id: I3fd64a435a053da1558ef736fe7baceee3c8f3a0 Signed-off-by: Duncan Laurie Original-Change-Id: Ia1e2ae7ca2a8b668c60fbda2aa50373e580646b2 Original-Signed-off-by: Duncan Laurie Original-Reviewed-on: https://chromium-review.googlesource.com/572692 Original-Reviewed-by: Duncan Laurie Original-Commit-Queue: Duncan Laurie Original-Tested-by: Duncan Laurie Reviewed-on: https://review.coreboot.org/22445 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/mainboard/google/eve/smihandler.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mainboard/google/eve/smihandler.c') diff --git a/src/mainboard/google/eve/smihandler.c b/src/mainboard/google/eve/smihandler.c index f51248cef5..e449900cb1 100644 --- a/src/mainboard/google/eve/smihandler.c +++ b/src/mainboard/google/eve/smihandler.c @@ -30,6 +30,12 @@ static void mainboard_gpio_smi_sleep(u8 slp_typ) { /* Power down the rails on any sleep type */ gpio_set(EN_PP3300_DX_CAM, 0); + + /* Assert TOUSHCREEN_STOP_L */ + gpio_set(GPP_E11, 0); + + /* Turn off touchscreen power */ + gpio_set(GPP_C22, 0); } void mainboard_smi_sleep(u8 slp_typ) -- cgit v1.2.3