summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-03-19 11:54:28 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-03-21 09:23:55 +0000
commit727b4e4e0d54e46e196d2d129ab432f537d2c301 (patch)
tree410d467d8b86eef0093c05487d0bb2bb0e1bdeb6
parent5bd3d71259f7d6f003a5d4e53a5c23bd8035da73 (diff)
downloadchrome-ec-727b4e4e0d54e46e196d2d129ab432f537d2c301.tar.gz
samus: enable config option for low power idle
Enable low power idle for Samus. BUG=none BRANCH=none TEST=tested on samus. made sure EC comes up with no obvious problems and that the EC goes into deep sleep a minute after no console activity. Change-Id: I00e196560759dfd62915e645319de606f2f29df3 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/190791 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Sameer Nanda <snanda@chromium.org>
-rw-r--r--board/samus/board.c7
-rw-r--r--board/samus/board.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/board/samus/board.c b/board/samus/board.c
index 7aca8afc10..68f3f787a7 100644
--- a/board/samus/board.c
+++ b/board/samus/board.c
@@ -17,6 +17,7 @@
#include "gpio.h"
#include "host_command.h"
#include "i2c.h"
+#include "jtag.h"
#include "keyboard_scan.h"
#include "lid_switch.h"
#include "peci.h"
@@ -30,6 +31,7 @@
#include "temp_sensor_chip.h"
#include "timer.h"
#include "thermal.h"
+#include "uart.h"
#include "util.h"
/* GPIO signal list. Must match order from enum gpio_signal. */
@@ -67,6 +69,11 @@ const struct gpio_info gpio_list[] = {
backlight_interrupt},
{"CAPSENSE_INT_L", LM4_GPIO_N, (1<<0), GPIO_INT_FALLING,
capsense_interrupt},
+ {"JTAG_TCK", LM4_GPIO_C, (1<<0), GPIO_DEFAULT,
+ jtag_interrupt},
+ {"UART0_RX", LM4_GPIO_A, (1<<0), GPIO_PULL_UP|
+ GPIO_INT_BOTH_DSLEEP,
+ uart_deepsleep_interrupt},
/* Other inputs */
{"BOARD_VERSION1", LM4_GPIO_Q, (1<<5), GPIO_INPUT, NULL},
diff --git a/board/samus/board.h b/board/samus/board.h
index c4c04df347..ed0aa4005a 100644
--- a/board/samus/board.h
+++ b/board/samus/board.h
@@ -24,6 +24,7 @@
#define CONFIG_KEYBOARD_BOARD_CONFIG
#define CONFIG_KEYBOARD_PROTOCOL_8042
#define CONFIG_LED_DRIVER_DS2413
+#define CONFIG_LOW_POWER_IDLE
#define CONFIG_ONEWIRE
#define CONFIG_POWER_BUTTON
#define CONFIG_POWER_BUTTON_X86
@@ -97,6 +98,8 @@ enum gpio_signal {
GPIO_WP_L, /* Write protect input */
GPIO_PCH_BL_EN, /* PCH backlight input */
GPIO_CAPSENSE_INT_L, /* Capsense interrupt */
+ GPIO_JTAG_TCK, /* JTAG clock input */
+ GPIO_UART0_RX, /* UART0 RX input */
/* Other inputs */
GPIO_BOARD_VERSION1, /* Board version stuffing resistor 1 */