From 2e64bed323809ff3cdfe264401eb7c1747b80b9e Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Fri, 15 Feb 2013 11:54:18 -0800 Subject: [PATCH] assert ENTERING_RW only if it exists This adds an #ifdef to fix compilation for boards which do not have ENTERING_RW (such as McCroskey). BUG=none BRANCH=none TEST=Tested on McCroskey Signed-off-by: David Hendricks Change-Id: Ic5577753edafd7fc249b8c23ab84e8c355a348e7 Reviewed-on: https://gerrit.chromium.org/gerrit/43413 Commit-Queue: David Hendricks Reviewed-by: David Hendricks Tested-by: David Hendricks Reviewed-by: Vincent Palatin --- common/system_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/system_common.c b/common/system_common.c index d77d82070e..7d05eb355d 100644 --- a/common/system_common.c +++ b/common/system_common.c @@ -302,7 +302,9 @@ static void jump_to_image(uint32_t init_addr) * 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...) */ +#ifdef GPIO_ENTERING_RW gpio_set_level(GPIO_ENTERING_RW, 1); +#endif /* Flush UART output unless the UART hasn't been initialized yet */ if (uart_init_done())