Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Jagan Teki | 59ea618 | 2017-09-12 17:15:47 +0530 | [diff] [blame] | 2 | /* |
3 | * Copyright (C) 2017 Amarula Solutions | ||||
Jagan Teki | 59ea618 | 2017-09-12 17:15:47 +0530 | [diff] [blame] | 4 | */ |
5 | |||||
6 | #include <common.h> | ||||
Simon Glass | 3673618 | 2019-11-14 12:57:24 -0700 | [diff] [blame] | 7 | #include <serial.h> |
Jagan Teki | 9901663 | 2017-09-27 23:03:13 +0530 | [diff] [blame] | 8 | |
9 | #ifndef CONFIG_TPL_BUILD | ||||
Jagan Teki | ec55f42 | 2018-02-14 21:26:22 +0530 | [diff] [blame] | 10 | |
Jagan Teki | 9901663 | 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 |