aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/samus/smihandler.c
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2014-09-29 08:35:29 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-04-02 17:27:50 +0200
commit1247b8734d20f623a9d6fc7ee62e77920b096d37 (patch)
treea633a64b77f546260bc9f8dc962950fba2120b1a /src/mainboard/google/samus/smihandler.c
parentd840118ef59bdd0f89c989c0c1d43d32e13ce9d1 (diff)
samus: Fix and clean up GPIOs and EC info/events
- Define specific GPIOs in gpio.h instaed of smihandler.c - Add battery status event to SCI list - Remove old proto board version defines and SPD index usage - Do not disable cmd_pwr training now that it works on EVT board BUG=chrome-os-partner:32196,chrome-os-partner:29117 BRANCH=samus TEST=build and boot on samus Change-Id: I50f1599aa4266ed61749cc7f4229a9384b498df2 Signed-off-by: Stefan Reinauer <reinauer@chromium.org> Original-Commit-Id: 0e3ebcb8659c92874d3ca89fa3a6795c9b6eebfa Original-Change-Id: I53cf8d80ed7f675c10fa04e8fe8b879a4af9b21f Original-Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/220321 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/9220 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/google/samus/smihandler.c')
-rw-r--r--src/mainboard/google/samus/smihandler.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/mainboard/google/samus/smihandler.c b/src/mainboard/google/samus/smihandler.c
index 932d606ba0..a97f4269e4 100644
--- a/src/mainboard/google/samus/smihandler.c
+++ b/src/mainboard/google/samus/smihandler.c
@@ -31,10 +31,7 @@
#include <broadwell/pm.h>
#include <broadwell/smm.h>
#include "ec.h"
-
-#define GPIO_SSD_RESET_L 47
-#define GPIO_WLAN_DISABLE_L 42
-#define GPIO_LTE_DISABLE_L 59
+#include "gpio.h"
int mainboard_io_trap_handler(int smif)
{
@@ -104,11 +101,11 @@ void mainboard_smi_sleep(u8 slp_typ)
}
/* Put SSD in reset to prevent leak. */
- set_gpio(GPIO_SSD_RESET_L, 0);
+ set_gpio(SAMUS_GPIO_SSD_RESET_L, 0);
/* Prevent leak from standby rail to WLAN rail in S3. */
- set_gpio(GPIO_WLAN_DISABLE_L, 0);
+ set_gpio(SAMUS_GPIO_WLAN_DISABLE_L, 0);
/* Disable LTE */
- set_gpio(GPIO_LTE_DISABLE_L, 0);
+ set_gpio(SAMUS_GPIO_LTE_DISABLE_L, 0);
/* Enable wake events */
google_chromeec_set_wake_mask(MAINBOARD_EC_S3_WAKE_EVENTS);
@@ -122,11 +119,11 @@ void mainboard_smi_sleep(u8 slp_typ)
}
/* Put SSD in reset to prevent leak. */
- set_gpio(GPIO_SSD_RESET_L, 0);
+ set_gpio(SAMUS_GPIO_SSD_RESET_L, 0);
/* Prevent leak from standby rail to WLAN rail in S5. */
- set_gpio(GPIO_WLAN_DISABLE_L, 0);
+ set_gpio(SAMUS_GPIO_WLAN_DISABLE_L, 0);
/* Disable LTE */
- set_gpio(GPIO_LTE_DISABLE_L, 0);
+ set_gpio(SAMUS_GPIO_LTE_DISABLE_L, 0);
/* Enable wake events */
google_chromeec_set_wake_mask(MAINBOARD_EC_S5_WAKE_EVENTS);