xref: /OK3568_Linux_fs/u-boot/board/amarula/vyasa-rk3288/vyasa-rk3288.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * Copyright (C) 2017 Amarula Solutions
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * SPDX-License-Identifier:     GPL-2.0+
5*4882a593Smuzhiyun  */
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun #include <common.h>
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun #ifndef CONFIG_TPL_BUILD
10*4882a593Smuzhiyun #include <spl.h>
11*4882a593Smuzhiyun 
spl_start_uboot(void)12*4882a593Smuzhiyun int spl_start_uboot(void)
13*4882a593Smuzhiyun {
14*4882a593Smuzhiyun         /* break into full u-boot on 'c' */
15*4882a593Smuzhiyun         if (serial_tstc() && serial_getc() == 'c')
16*4882a593Smuzhiyun                 return 1;
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun         return 0;
19*4882a593Smuzhiyun }
20*4882a593Smuzhiyun #endif
21