diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-05-09 11:38:51 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-05-10 08:18:25 +0200 |
commit | 163c3a08168f1528da949d167c13511ad407f25b (patch) | |
tree | b3816959e756a2aa0f8c824c84d260b53a9683e0 | |
parent | f475365f4eb83dfc00a424505995ee3777cc75e1 (diff) | |
download | barebox-163c3a08168f1528da949d167c13511ad407f25b.tar.gz barebox-163c3a08168f1528da949d167c13511ad407f25b.tar.xz |
ARM: Layerscape: ls1046a: Add bbu handlers
The barebox images can simply be written to the partitions, so we can
use bbu_register_std_file_update() for updating to MMC and QSPI.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/mach-layerscape/include/mach/bbu.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-layerscape/include/mach/bbu.h b/arch/arm/mach-layerscape/include/mach/bbu.h new file mode 100644 index 0000000000..1ea0cbb11f --- /dev/null +++ b/arch/arm/mach-layerscape/include/mach/bbu.h @@ -0,0 +1,22 @@ +#ifndef __MACH_LAYERSCAPE_BBU_H +#define __MACH_LAYERSCAPE_BBU_H + +#include <bbu.h> + +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 */
\ No newline at end of file |