From 727b4e4e0d54e46e196d2d129ab432f537d2c301 Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Wed, 19 Mar 2014 11:54:28 -0700 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/190791 Reviewed-by: Bill Richardson Reviewed-by: Sameer Nanda --- board/samus/board.c | 7 +++++++ board/samus/board.h | 3 +++ 2 files changed, 10 insertions(+) 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 */