From 85b294f24d37116ba3f4aa419bc4df24cf4a5ee7 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Wed, 20 Jan 2016 16:39:08 -0800 Subject: chell: Add board support for asserting RTCRST Enable CONFIG_BOARD_HAS_RTC_RESET and add a board_rtc_reset() function to assert RTCRST to the PCH that will be called if the board fails to sequence out of the S5 state. This does not do anything on EVT devices but will be present in DVT. BUG=chrome-os-partner:49564 BRANCH=glados TEST=manually tested on chell Change-Id: If0be091349a7ef7e8e1335ade029570c5f97a30e Signed-off-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/322725 Reviewed-by: Shawn N --- board/chell/board.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'board/chell/board.c') diff --git a/board/chell/board.c b/board/chell/board.c index 0fb6ec5b1f..27316719e0 100644 --- a/board/chell/board.c +++ b/board/chell/board.c @@ -183,6 +183,14 @@ void board_reset_pd_mcu(void) gpio_set_level(GPIO_PD_RST_L, 1); } +void board_rtc_reset(void) +{ + CPRINTS("Asserting RTCRST# to PCH"); + gpio_set_level(GPIO_PCH_RTCRST, 1); + udelay(100); + gpio_set_level(GPIO_PCH_RTCRST, 0); +} + const struct temp_sensor_t temp_sensors[] = { {"Battery", TEMP_SENSOR_TYPE_BATTERY, charge_temp_sensor_get_val, 0, 4}, -- cgit v1.2.1