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>
This commit is contained in:
parent
9cd65cd4b5
commit
654289993b
|
@ -50,6 +50,15 @@ static bool is_cnvi_held_in_reset(void)
|
||||||
return false;
|
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)
|
static void mainboard_init(void *chip_info)
|
||||||
{
|
{
|
||||||
int boardid;
|
int boardid;
|
||||||
|
@ -66,6 +75,9 @@ static void mainboard_init(void *chip_info)
|
||||||
gpio_configure_pads_with_override(base_pads, base_num,
|
gpio_configure_pads_with_override(base_pads, base_num,
|
||||||
override_pads, override_num);
|
override_pads, override_num);
|
||||||
|
|
||||||
|
if (!is_cnvi_held_in_reset())
|
||||||
|
disable_wifi_wake();
|
||||||
|
|
||||||
mainboard_ec_init();
|
mainboard_ec_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue