blob: 92e0698c534be4b8fe1cfa9e3731d6d22e00c45b [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Jagan Tekid55af072017-09-12 17:15:47 +05302/*
3 * Copyright (C) 2017 Amarula Solutions
Jagan Tekid55af072017-09-12 17:15:47 +05304 */
5
6#include <common.h>
Simon Glassb03e0512019-11-14 12:57:24 -07007#include <serial.h>
Jagan Teki5d94ebe2017-09-27 23:03:13 +05308
9#ifndef CONFIG_TPL_BUILD
Jagan Teki1e84e442018-02-14 21:26:22 +053010
Jagan Teki5d94ebe2017-09-27 23:03:13 +053011int 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