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>
This commit is contained in:
David Hendricks
2013-02-15 11:54:18 -08:00
committed by ChromeBot
parent 1da883a6bc
commit 2e64bed323

View File

@@ -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())