summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2024-03-13 20:56:03 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-03-15 08:20:47 +0100
commit583b331c232519d5e963ed6fe788386f2ff5f1b9 (patch)
treea520b3e12baa64c32317afa15d58ea93785172a6 /include
parentaa700158e349e7a68aaa7b9e0865b825ed4a9929 (diff)
downloadbarebox-583b331c232519d5e963ed6fe788386f2ff5f1b9.tar.gz
barebox-583b331c232519d5e963ed6fe788386f2ff5f1b9.tar.xz
fastboot: add support to set fastboot_bbu from board code
Add a helper to set the fastboot_bbu variable to be independent of the initlevel. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Link: https://lore.barebox.org/20240313195606.3911219-1-m.felsch@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/fastboot.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/fastboot.h b/include/fastboot.h
index 8a98b482fe..cd415847e3 100644
--- a/include/fastboot.h
+++ b/include/fastboot.h
@@ -60,6 +60,7 @@ enum fastboot_msg_type {
#ifdef CONFIG_FASTBOOT_BASE
bool get_fastboot_bbu(void);
+void set_fastboot_bbu(unsigned int enable);
struct file_list *get_fastboot_partitions(void);
#else
static inline int get_fastboot_bbu(void)
@@ -67,6 +68,10 @@ static inline int get_fastboot_bbu(void)
return false;
}
+static inline void set_fastboot_bbu(unsigned int enable)
+{
+}
+
static inline struct file_list *get_fastboot_partitions(void)
{
return file_list_parse("");