diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2019-10-28 22:39:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-11-06 11:22:35 +0100 |
commit | 859697993bc6849c072d6c9ebbf908316b7d644b (patch) | |
tree | 29d1e4e23961bc82ad5abf3745b15b0dc6d4cb4b /arch/arm/mach-stm32mp | |
parent | 4c32eafe27f740d4edddc58be3c6a0e2d73015b7 (diff) | |
download | barebox-859697993bc6849c072d6c9ebbf908316b7d644b.tar.gz barebox-859697993bc6849c072d6c9ebbf908316b7d644b.tar.xz |
ARM: stm32mp: dk2: add barebox SD-Card update handler
Now with the SD/MMC controller supported, lets add a bbu handler, so we
can use it to update the second stage boot loader partition.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-stm32mp')
-rw-r--r-- | arch/arm/mach-stm32mp/include/mach/bbu.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-stm32mp/include/mach/bbu.h b/arch/arm/mach-stm32mp/include/mach/bbu.h new file mode 100644 index 0000000000..8b9504400e --- /dev/null +++ b/arch/arm/mach-stm32mp/include/mach/bbu.h @@ -0,0 +1,14 @@ +#ifndef MACH_STM32MP_BBU_H_ +#define MACH_STM32MP_BBU_H_ + +#include <bbu.h> + +static inline int stm32mp_bbu_mmc_register_handler(const char *name, + const char *devicefile, + unsigned long flags) +{ + return bbu_register_std_file_update(name, flags, devicefile, + filetype_stm32_image_v1); +} + +#endif /* MACH_STM32MP_BBU_H_ */ |