From 711b732478446b755a7d81f594b585f957e84a7d Mon Sep 17 00:00:00 2001 From: Derek Basehore Date: Tue, 24 Oct 2017 16:22:01 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/736815 Reviewed-by: Alexandru M Stan Reviewed-by: Philip Chen --- board/scarlet/board.c | 24 ------------------------ board/scarlet/board.h | 1 + 2 files changed, 1 insertion(+), 24 deletions(-) (limited to 'board/scarlet') 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 @@ -124,13 +124,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, @@ -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 -- cgit v1.2.1