summaryrefslogtreecommitdiff
path: root/src/mainboard/google/octopus/mainboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/octopus/mainboard.c')
-rw-r--r--src/mainboard/google/octopus/mainboard.c12
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();
}