diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-06-02 11:01:27 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-06-03 09:17:27 +0200 |
commit | 960535d9bf19cb1a26517cf792c708743ec811b7 (patch) | |
tree | cb846ef61a2c4a0ae43223acf1220f5c9aafa8b1 /include | |
parent | 278a4fd206da4bb6cb8c32c2c18161788c816bbe (diff) | |
download | barebox-960535d9bf19cb1a26517cf792c708743ec811b7.tar.gz barebox-960535d9bf19cb1a26517cf792c708743ec811b7.tar.xz |
bbu: move barebox_update eMMC boot handling into common code
Like with the i.MX, the STM32MP1 BootROM also consults the
EXT_CSD_PARTITION_CONFIG register to find out what to boot.
The barebox_update code used for atomic update on i.MX is thus
useful to the STM32MP as well, so move the boot switching part
to a generic location.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220602090133.3190450-2-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/bbu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bbu.h b/include/bbu.h index 3128339068..bf5f2158df 100644 --- a/include/bbu.h +++ b/include/bbu.h @@ -50,6 +50,9 @@ void bbu_handlers_list(void); struct file_list; +int bbu_mmcboot_handler(struct bbu_handler *, struct bbu_data *, + int (*chained_handler)(struct bbu_handler *, struct bbu_data *)); + #ifdef CONFIG_BAREBOX_UPDATE int bbu_register_handler(struct bbu_handler *); |