summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/fastboot.c5
-rw-r--r--include/fastboot.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/common/fastboot.c b/common/fastboot.c
index f5a275d8bf..d8dabd89ab 100644
--- a/common/fastboot.c
+++ b/common/fastboot.c
@@ -955,6 +955,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 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("");