summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongBeum.Ha <ybha@samsung.corp-partner.google.com>2021-09-28 11:55:45 +0900
committerCommit Bot <commit-bot@chromium.org>2021-09-28 18:37:12 +0000
commit6faafa7d2ebeec9df5f7eb0375da57a932155347 (patch)
treecd7b1a3e62f40b3adf2db9932a820c9b724156df
parent94cb5c4c0c95b26c3d124a23c00b91be062f55f5 (diff)
downloadchrome-ec-6faafa7d2ebeec9df5f7eb0375da57a932155347.tar.gz
bugzzy : remove leakage of LCD power
TSP_TA is leakage source on LCD off or Power Off. Set TSP_TA to low when LCD Power is off. BUG=b:201355826 BRANCH=None TEST=make -j BOARD=bugzzy Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Change-Id: Ie7e178248a9ff8cf7c13cb0311f4a9c8cb397ce4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3189453 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r--board/bugzzy/board.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/board/bugzzy/board.c b/board/bugzzy/board.c
index a9457be37d..2d24c9553a 100644
--- a/board/bugzzy/board.c
+++ b/board/bugzzy/board.c
@@ -730,6 +730,8 @@ static void panel_power_change_deferred(void)
gpio_set_level(GPIO_EN_LCD_ENP, signal);
msleep(1);
gpio_set_level(GPIO_EN_LCD_ENN, signal);
+
+ gpio_set_level(GPIO_TSP_TA, signal & extpower_is_present());
}
DECLARE_DEFERRED(panel_power_change_deferred);
@@ -744,7 +746,9 @@ void panel_power_change_interrupt(enum gpio_signal signal)
*/
static void handle_tsp_ta(void)
{
- gpio_set_level(GPIO_TSP_TA, extpower_is_present());
+ int signal = gpio_get_level(GPIO_EN_PP1800_PANEL_S0);
+
+ gpio_set_level(GPIO_TSP_TA, signal & extpower_is_present());
}
DECLARE_HOOK(HOOK_AC_CHANGE, handle_tsp_ta, HOOK_PRIO_DEFAULT);