rk3288: vyasa: Add falcon mode support
[oweals/u-boot.git] / board / amarula / vyasa-rk3288 / vyasa-rk3288.c
index ceee42c16e24591a57ebba90fb42e8b1cc036dfe..7985671fbd708a12bc0ea01d42729d77a6aeff1d 100644 (file)
@@ -5,3 +5,16 @@
  */
 
 #include <common.h>
+
+#ifndef CONFIG_TPL_BUILD
+#include <spl.h>
+
+int spl_start_uboot(void)
+{
+        /* break into full u-boot on 'c' */
+        if (serial_tstc() && serial_getc() == 'c')
+                return 1;
+
+        return 0;
+}
+#endif