aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/reef/smihandler.c
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2016-08-17 16:18:05 -0700
committerMartin Roth <martinroth@google.com>2016-08-19 03:04:31 +0200
commitd3d77beffa1e7c8d28deabeda0709e0a0beacce2 (patch)
treef53ce68c66a8b15646fa2caaa8498d6ff553212a /src/mainboard/google/reef/smihandler.c
parentcb6096d71d40c0d15a0abe18ffad1f47c3e7ebf5 (diff)
google/reef: Configure NFC gpios correctly before entering sleep
Before entering sleep, ensure that the NFC gpios are configured correctly to avoid leakage. BUG=chrome-os-partner:56281 Change-Id: I2bb2e7ba468df445aa5f6c2b22ae0a74fcaa44f6 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/16243 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/mainboard/google/reef/smihandler.c')
-rw-r--r--src/mainboard/google/reef/smihandler.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/reef/smihandler.c b/src/mainboard/google/reef/smihandler.c
index e26c176b1b..d33222be9d 100644
--- a/src/mainboard/google/reef/smihandler.c
+++ b/src/mainboard/google/reef/smihandler.c
@@ -19,7 +19,9 @@
#include <ec/google/chromeec/smm.h>
#include <soc/pm.h>
#include <soc/smm.h>
+#include <soc/gpio.h>
#include "ec.h"
+#include "gpio.h"
void mainboard_smi_gpi_handler(const struct gpi_status *sts)
{
@@ -29,6 +31,8 @@ void mainboard_smi_gpi_handler(const struct gpi_status *sts)
void mainboard_smi_sleep(u8 slp_typ)
{
+ gpio_configure_pads(sleep_gpio_table, ARRAY_SIZE(sleep_gpio_table));
+
if (slp_typ == ACPI_S3)
enable_gpe(GPIO_TIER_1_SCI);