diff options
author | Furquan Shaikh <furquan@google.com> | 2020-06-23 11:04:50 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-07-01 17:54:28 +0000 |
commit | 17c46042eb9350a1cdc0d6cb68bcfa1850abd0fd (patch) | |
tree | 212830fd93944c91c0cc318bd2d4af65027164a2 | |
parent | e266eb82d9fc84b3c1c1e09c677e8b5d839626bb (diff) |
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 <furquan@google.com>
Change-Id: I21bcdd53370372c7d43c3b685abb2a9171e42d22
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/coreboot/+/2261115
Reviewed-by: Aaron Durbin <adurbin@google.com>
Commit-Queue: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42933
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r-- | src/mainboard/google/zork/variants/baseboard/gpio_baseboard_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |