summaryrefslogtreecommitdiffstats
path: root/include/mach/layerscape/bbu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mach/layerscape/bbu.h')
-rw-r--r--include/mach/layerscape/bbu.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/mach/layerscape/bbu.h b/include/mach/layerscape/bbu.h
new file mode 100644
index 0000000000..186185699b
--- /dev/null
+++ b/include/mach/layerscape/bbu.h
@@ -0,0 +1,32 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef __MACH_LAYERSCAPE_BBU_H
+#define __MACH_LAYERSCAPE_BBU_H
+
+#include <bbu.h>
+
+static inline int ls1028a_bbu_mmc_register_handler(const char *name,
+ const char *devicefile,
+ unsigned long flags)
+{
+ return bbu_register_std_file_update(name, flags, devicefile,
+ filetype_layerscape_image);
+}
+
+static inline int ls1046a_bbu_mmc_register_handler(const char *name,
+ const char *devicefile,
+ unsigned long flags)
+{
+ return bbu_register_std_file_update(name, flags, devicefile,
+ filetype_layerscape_image);
+}
+
+static inline int ls1046a_bbu_qspi_register_handler(const char *name,
+ const char *devicefile,
+ unsigned long flags)
+{
+ return bbu_register_std_file_update(name, flags, devicefile,
+ filetype_layerscape_qspi_image);
+}
+
+#endif /* __MACH_LAYERSCAPE_BBU_H */