Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Jagan Teki | d55af07 | 2017-09-12 17:15:47 +0530 | [diff] [blame] | 2 | /* |
3 | * Copyright (C) 2017 Amarula Solutions | ||||
Jagan Teki | d55af07 | 2017-09-12 17:15:47 +0530 | [diff] [blame] | 4 | */ |
5 | |||||
6 | #include <common.h> | ||||
Simon Glass | b03e051 | 2019-11-14 12:57:24 -0700 | [diff] [blame] | 7 | #include <serial.h> |
Jagan Teki | 5d94ebe | 2017-09-27 23:03:13 +0530 | [diff] [blame] | 8 | |
9 | #ifndef CONFIG_TPL_BUILD | ||||
Jagan Teki | 1e84e44 | 2018-02-14 21:26:22 +0530 | [diff] [blame] | 10 | |
Jagan Teki | 5d94ebe | 2017-09-27 23:03:13 +0530 | [diff] [blame] | 11 | int spl_start_uboot(void) |
12 | { | ||||
13 | /* break into full u-boot on 'c' */ | ||||
14 | if (serial_tstc() && serial_getc() == 'c') | ||||
15 | return 1; | ||||
16 | |||||
17 | return 0; | ||||
18 | } | ||||
19 | #endif |