diff options
author | Derek Basehore <dbasehore@chromium.org> | 2017-10-24 16:22:01 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-10-25 01:38:44 -0700 |
commit | 711b732478446b755a7d81f594b585f957e84a7d (patch) | |
tree | e1befac917e7b569b2b345fe91f33ace46ad2c1d /board/scarlet | |
parent | 1e713d043ba24d3cb3d5c1599f4f064b9465d56f (diff) | |
download | chrome-ec-711b732478446b755a7d81f594b585f957e84a7d.tar.gz |
scarlet: remove hibernate
The STM32F that we use doesn't support hibernate. This doesn't matter
much since stop mode uses very little power anyways.
BUG=b:67772394
BRANCH=none
TEST=check that the hibernate command is gone via help on the EC
console
Change-Id: I712b6b0ce1376357acf99f01b1c84fcce0642805
Signed-off-by: Derek Basehore <dbasehore@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/736815
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-by: Philip Chen <philipchen@chromium.org>
Diffstat (limited to 'board/scarlet')
-rw-r--r-- | board/scarlet/board.c | 24 | ||||
-rw-r--r-- | board/scarlet/board.h | 1 |
2 files changed, 1 insertions, 24 deletions
diff --git a/board/scarlet/board.c b/board/scarlet/board.c index 02ec61c558..f496abcda9 100644 --- a/board/scarlet/board.c +++ b/board/scarlet/board.c @@ -125,13 +125,6 @@ const struct spi_device_t spi_devices[] = { const unsigned int spi_devices_used = ARRAY_SIZE(spi_devices); /******************************************************************************/ -/* Wake-up pins for hibernate */ -const enum gpio_signal hibernate_wake_pins[] = { - GPIO_POWER_BUTTON_L, GPIO_CHARGER_INT_L -}; -const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins); - -/******************************************************************************/ const struct button_config buttons[CONFIG_BUTTON_COUNT] = { [BUTTON_VOLUME_DOWN] = {"Volume Down", KEYBOARD_BUTTON_VOLUME_DOWN, GPIO_VOLUME_DOWN_L, 30 * MSEC, 0}, @@ -329,23 +322,6 @@ void board_config_pre_init(void) (1 << 24) | (1 << 25); } -void board_hibernate(void) -{ - int rv; - - /* - * Disable the power enables for the TCPCs since we're going into - * hibernate. The charger VBUS interrupt will wake us up and reset the - * EC. Upon init, we'll reinitialize the TCPCs to be at full power. - */ - CPRINTS("Set TCPCs to low power"); - rv = tcpc_write(0, TCPC_REG_POWER, TCPC_REG_POWER_PWR_LOW); - if (rv) - CPRINTS("Error setting TCPC %d", 0); - - cflush(); -} - enum scarlet_board_version { BOARD_VERSION_UNKNOWN = -1, BOARD_VERSION_REV0 = 0, diff --git a/board/scarlet/board.h b/board/scarlet/board.h index ef45d693f0..a9115e2b74 100644 --- a/board/scarlet/board.h +++ b/board/scarlet/board.h @@ -14,6 +14,7 @@ #define CONFIG_CHIPSET_RK3399 #define CONFIG_CMD_ACCELS #define CONFIG_CMD_RTC +#undef CONFIG_HIBERNATE #define CONFIG_HOSTCMD_RTC #define CONFIG_I2C #define CONFIG_I2C_MASTER |