mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
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:
committed by
ChromeBot
parent
1da883a6bc
commit
2e64bed323
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user