From ebf79b00a9f77c7d4bb8b0acb633380937593f91 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Tue, 19 Jun 2012 09:46:22 -0700 Subject: Set GPIO_ENTERING_RW before jumping between images. BUG=chrome-os-partner:10662 TEST=manual 1) Boot system with power+esc+refresh. gpioget ENTERING_RW --> 0 2) reboot, then gpioget ENTERING_RW --> 1 3) Check EC_IN_RW signal on AP, if possible Change-Id: I9de43eecf71654bf337d7a0e8b21f0cbcf386cc7 Signed-off-by: Randall Spangler Reviewed-on: https://gerrit.chromium.org/gerrit/25624 Reviewed-by: Bill Richardson --- common/system_common.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/system_common.c b/common/system_common.c index d5da126943..1ffef0175a 100644 --- a/common/system_common.c +++ b/common/system_common.c @@ -261,6 +261,15 @@ static void jump_to_image(uint32_t init_addr, { void (*resetvec)(void) = (void(*)(void))init_addr; +#ifdef BOARD_link + /* + * Jumping to any image asserts the signal to the Silego chip that that + * EC is not in read-only firmware. (This is not technically true if + * jumping from RO -> RO, but that's not a meaningful use case...) + */ + gpio_set_level(GPIO_ENTERING_RW, 1); +#endif + /* Flush UART output unless the UART hasn't been initialized yet */ if (uart_init_done()) uart_flush_output(); -- cgit v1.2.1