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> |
Jagan Teki | 9901663 | 2017-09-27 23:03:13 +0530 | [diff] [blame] | 7 | |
| 8 | #ifndef CONFIG_TPL_BUILD |
Jagan Teki | ec55f42 | 2018-02-14 21:26:22 +0530 | [diff] [blame] | 9 | |
Jagan Teki | 9901663 | 2017-09-27 23:03:13 +0530 | [diff] [blame] | 10 | int spl_start_uboot(void) |
| 11 | { |
| 12 | /* break into full u-boot on 'c' */ |
| 13 | if (serial_tstc() && serial_getc() == 'c') |
| 14 | return 1; |
| 15 | |
| 16 | return 0; |
| 17 | } |
| 18 | #endif |