mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/4] fastboot: add support to set fastboot_bbu from board code
@ 2024-03-13 19:56 Marco Felsch
  2024-03-13 19:56 ` [PATCH 2/4] boot: add helper to set default boot source from board file Marco Felsch
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Marco Felsch @ 2024-03-13 19:56 UTC (permalink / raw)
  To: barebox

Add a helper to set the fastboot_bbu variable to be independent of the
initlevel.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 common/fastboot.c  | 5 +++++
 include/fastboot.h | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/common/fastboot.c b/common/fastboot.c
index 261283d50a3a..da55e9c2577f 100644
--- a/common/fastboot.c
+++ b/common/fastboot.c
@@ -933,6 +933,11 @@ bool get_fastboot_bbu(void)
 	return fastboot_bbu;
 }
 
+void set_fastboot_bbu(unsigned int enable)
+{
+	fastboot_bbu = enable;
+}
+
 struct file_list *get_fastboot_partitions(void)
 {
 	if (fastboot_partitions && *fastboot_partitions)
diff --git a/include/fastboot.h b/include/fastboot.h
index 8a98b482fe14..cd415847e348 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("");
-- 
2.39.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-15  7:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-13 19:56 [PATCH 1/4] fastboot: add support to set fastboot_bbu from board code Marco Felsch
2024-03-13 19:56 ` [PATCH 2/4] boot: add helper to set default boot source from board file Marco Felsch
2024-03-13 19:56 ` [PATCH 3/4] startup: fix autoboot_state in case of abort Marco Felsch
2024-03-13 19:56 ` [PATCH 4/4] common: barebox_banner: fix missing newline Marco Felsch
2024-03-15  7:20 ` [PATCH 1/4] fastboot: add support to set fastboot_bbu from board code Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox