summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2013-07-31 14:08:59 -0700
committerPatrick Georgi <patrick@georgi-clan.de>2013-12-21 12:02:10 +0100
commit7ad61f6262c3056232c414ed9482b7d6f8719948 (patch)
tree27feb88af438d8ee9d638ad0ce781a52c5b34e94
parent7b4c4325e92ba39265a3ed32a6b2aec6a8864985 (diff)
downloadcoreboot-7ad61f6262c3056232c414ed9482b7d6f8719948.tar.xz
falco: Drive GPIO59/LTE_DISABLE_L low on S3/S5
Try to prevent WWAN from causing spurious wakes. Change-Id: Ifcc44063de0eb1634cab9dd244737071568e3455 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/63987 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/4414 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
-rw-r--r--src/mainboard/google/falco/smihandler.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainboard/google/falco/smihandler.c b/src/mainboard/google/falco/smihandler.c
index 52dd77654a..ee56987d02 100644
--- a/src/mainboard/google/falco/smihandler.c
+++ b/src/mainboard/google/falco/smihandler.c
@@ -34,6 +34,7 @@
/* GPIO46 controls the WLAN_DISABLE_L signal. */
#define GPIO_WLAN_DISABLE_L 46
+#define GPIO_LTE_DISABLE_L 59
int mainboard_io_trap_handler(int smif)
{
@@ -104,6 +105,8 @@ void mainboard_smi_sleep(u8 slp_typ)
/* Prevent leak from standby rail to WLAN rail in S3. */
set_gpio(GPIO_WLAN_DISABLE_L, 0);
+ /* Disable LTE */
+ set_gpio(GPIO_LTE_DISABLE_L, 0);
break;
case 5:
if (smm_get_gnvs()->s5u0 == 0)
@@ -115,6 +118,8 @@ void mainboard_smi_sleep(u8 slp_typ)
/* Prevent leak from standby rail to WLAN rail in S5. */
set_gpio(GPIO_WLAN_DISABLE_L, 0);
+ /* Disable LTE */
+ set_gpio(GPIO_LTE_DISABLE_L, 0);
break;
}