diff options
author | David Hendricks <dhendrix@chromium.org> | 2013-02-15 11:54:18 -0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-02-19 07:28:17 -0800 |
commit | 2e64bed323809ff3cdfe264401eb7c1747b80b9e (patch) | |
tree | 4bec99d7251f3fad3bd8ebdd162d41a77723a803 | |
parent | 1da883a6bc06648987125be7c29ed248d20c4a49 (diff) | |
download | chrome-ec-2e64bed323809ff3cdfe264401eb7c1747b80b9e.tar.gz |
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 <dhendrix@chromium.org>
Change-Id: Ic5577753edafd7fc249b8c23ab84e8c355a348e7
Reviewed-on: https://gerrit.chromium.org/gerrit/43413
Commit-Queue: David Hendricks <dhendrix@chromium.org>
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Tested-by: David Hendricks <dhendrix@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r-- | common/system_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
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()) |