summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXingyu Wu <xingyu.wu@starfivetech.com>2023-09-06 10:14:01 +0300
committerXingyu Wu <xingyu.wu@starfivetech.com>2023-09-07 04:34:13 +0300
commitfe15334eb1ad300a0b094c1ce9968c4ba4a200c6 (patch)
tree7cbeaef211fa53f0b2baf63efcbc08f1d3d80cec /include
parent67df54127e38f1351c38293abd08d817e33394c7 (diff)
downloadu-boot-fe15334eb1ad300a0b094c1ce9968c4ba4a200c6.tar.xz
common: autoboot: Add auto-fastboot on StarFive SoC
Add auto-fastboot function before autoboot on StarFive SoC and add a config to enable or disable this. In the auto-fastboot, it check a environment flag of 'fb_sf_completed' first. The flag is NULL and then the fastboot will work. The flag will be set from USB tool to indicate done after flashing the image. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Diffstat (limited to 'include')
-rw-r--r--include/autoboot.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/autoboot.h b/include/autoboot.h
index d6915dd0cc..26dd9c1700 100644
--- a/include/autoboot.h
+++ b/include/autoboot.h
@@ -79,4 +79,5 @@ static inline void autoboot_command(const char *s)
}
#endif
+int autofastboot_command(void);
#endif