From 17c46042eb9350a1cdc0d6cb68bcfa1850abd0fd Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Tue, 23 Jun 2020 11:04:50 -0700 Subject: mb/google/zork: Turn off power to camera and pen in sleep path This change turns off power to camera and pen devices when entering sleep since they do not act as wake sources in S3. Power to trackpad and WiFi is left enabled since they are wake sources for S3. Signed-off-by: Furquan Shaikh Change-Id: I21bcdd53370372c7d43c3b685abb2a9171e42d22 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/coreboot/+/2261115 Reviewed-by: Aaron Durbin Commit-Queue: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/c/coreboot/+/42933 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/mainboard/google/zork/variants/baseboard/gpio_baseboard_common.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_common.c b/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_common.c index 614e837726..e43b0b4cff 100644 --- a/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_common.c +++ b/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_common.c @@ -32,6 +32,10 @@ const __weak struct soc_amd_gpio *variant_early_gpio_table(size_t *size) } static const struct soc_amd_gpio gpio_sleep_table[] = { + /* PEN_POWER_EN */ + PAD_GPO(GPIO_5, LOW), + /* EN_PWR_CAMERA */ + PAD_GPO(GPIO_76, LOW), }; const __weak struct soc_amd_gpio *variant_sleep_gpio_table(size_t *size, int slp_typ) -- cgit v1.2.3