diff options
author | Furquan Shaikh <furquan@google.com> | 2018-08-09 10:11:26 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2018-08-12 17:58:49 +0000 |
commit | 654289993b8d3a01701dafb76bc552f1ed4d60d5 (patch) | |
tree | 3e9f6f9b9192a831e2dedc69a7deba3d59f5a20e | |
parent | 9cd65cd4b523123033be2cbd99581764015af4ce (diff) | |
download | coreboot-654289993b8d3a01701dafb76bc552f1ed4d60d5.tar.xz |
mb/google/octopus: Configure WiFi wake as NC when using CNVi
When CNVi is being used, external wake using GPIO_119 is not
required. This change configures GPIO_119 as PAD_NC if CNVi is taken
out of reset.
BUG=b:112371978
Change-Id: Ifee90f428ed43c4d7c612c170476aff43b4a33ce
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/27993
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r-- | src/mainboard/google/octopus/mainboard.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mainboard/google/octopus/mainboard.c b/src/mainboard/google/octopus/mainboard.c index 61baa33f4b..61d254ee5a 100644 --- a/src/mainboard/google/octopus/mainboard.c +++ b/src/mainboard/google/octopus/mainboard.c @@ -50,6 +50,15 @@ static bool is_cnvi_held_in_reset(void) return false; } +static void disable_wifi_wake(void) +{ + static const struct pad_config wifi_wake_gpio[] = { + PAD_NC(GPIO_119, UP_20K), + }; + + gpio_configure_pads(wifi_wake_gpio, ARRAY_SIZE(wifi_wake_gpio)); +} + static void mainboard_init(void *chip_info) { int boardid; @@ -66,6 +75,9 @@ static void mainboard_init(void *chip_info) gpio_configure_pads_with_override(base_pads, base_num, override_pads, override_num); + if (!is_cnvi_held_in_reset()) + disable_wifi_wake(); + mainboard_ec_init(); } |