diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-06-02 11:01:29 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-06-03 09:17:27 +0200 |
commit | 5005f599ca88519dfa5139d4e90f3f5c5290bf31 (patch) | |
tree | ec58d976e8f993719ce799a7b89e5c5b146e275e /include | |
parent | 109e95cce7c77d8401d393831d26b33655759318 (diff) | |
download | barebox-5005f599ca88519dfa5139d4e90f3f5c5290bf31.tar.gz barebox-5005f599ca88519dfa5139d4e90f3f5c5290bf31.tar.xz |
bbu: add flag for enabling eMMC boot ack
bbu_mmcboot_handler() already takes care to switch $mmc.boot to the
freshly read inactive partition. On some SoCs like the STM32MP1, this is
not enough, but the boot ack bit must be set as well, so the BootROM can
communicate with the eMMC.
Have this happen as part of the eMMC boot switch after a successful
update if bbu_data::flags has BBU_FLAG_MMC_BOOT_ACK set.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220602090133.3190450-4-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/bbu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/bbu.h b/include/bbu.h index bf5f2158df..bd19fa187f 100644 --- a/include/bbu.h +++ b/include/bbu.h @@ -10,6 +10,7 @@ struct bbu_data { #define BBU_FLAG_FORCE (1 << 0) #define BBU_FLAG_YES (1 << 1) +#define BBU_FLAG_MMC_BOOT_ACK (1 << 2) unsigned long flags; int force; const void *image; |