[PATCH v2 20/21] ARM: Layerscape: LS1028a: Add barebox update handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <s.hauer@xxxxxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux