From 19ad2a91ccc80c97107566b573791ff12a9bc7d4 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Tue, 14 Jul 2015 13:16:00 -0700 Subject: [PATCH] glados: Enable wireless gpio controls Define the wireless GPIOs and enable control of them by the chipset power state machine. BUG=chrome-os-partner:40178 BRANCH=none TEST=emerge-glados chromeos-ec Change-Id: Ibf5f2cccb64324aafb9147873b77bddd8161ebe7 Signed-off-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/285535 Tested-by: Shawn N Reviewed-by: Aaron Durbin --- board/glados/board.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/board/glados/board.h b/board/glados/board.h index 83bc659347..515daaf9e5 100644 --- a/board/glados/board.h +++ b/board/glados/board.h @@ -66,6 +66,14 @@ #define CONFIG_SYSTEM_UNLOCKED #define CONFIG_WATCHDOG_HELP +#define CONFIG_WIRELESS +#define CONFIG_WIRELESS_SUSPEND \ + (EC_WIRELESS_SWITCH_WLAN | EC_WIRELESS_SWITCH_WLAN_POWER) + +/* Wireless signals */ +#define WIRELESS_GPIO_WLAN GPIO_WLAN_OFF_L +#define WIRELESS_GPIO_WLAN_POWER GPIO_PP3300_WLAN_EN + /* I2C ports */ #define I2C_PORT_BATTERY MEC1322_I2C0_0 #define I2C_PORT_CHARGER MEC1322_I2C0_0