The LS1028a image can be written straight to SD/eMMC at offset 0x100.
Add a barebox update handler for it.

Signed-off-by: Sascha Hauer <[email protected]>
---
 include/mach/layerscape/bbu.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/mach/layerscape/bbu.h b/include/mach/layerscape/bbu.h
index d018ec9a9d..186185699b 100644
--- a/include/mach/layerscape/bbu.h
+++ b/include/mach/layerscape/bbu.h
@@ -5,6 +5,14 @@
 
 #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)
-- 
2.39.2


Reply via email to