aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/board/amarula/vyasa-rk3288/vyasa-rk3288.c
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/board/amarula/vyasa-rk3288/vyasa-rk3288.c')
-rw-r--r--roms/u-boot/board/amarula/vyasa-rk3288/vyasa-rk3288.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/roms/u-boot/board/amarula/vyasa-rk3288/vyasa-rk3288.c b/roms/u-boot/board/amarula/vyasa-rk3288/vyasa-rk3288.c
new file mode 100644
index 000000000..92e0698c5
--- /dev/null
+++ b/roms/u-boot/board/amarula/vyasa-rk3288/vyasa-rk3288.c
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2017 Amarula Solutions
+ */
+
+#include <common.h>
+#include <serial.h>
+
+#ifndef CONFIG_TPL_BUILD
+
+int spl_start_uboot(void)
+{
+ /* break into full u-boot on 'c' */
+ if (serial_tstc() && serial_getc() == 'c')
+ return 1;
+
+ return 0;
+}
+#endif