diff options
| author | Tom Rini <[email protected]> | 2021-06-18 13:18:29 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-06-18 13:18:29 -0400 |
| commit | 0699dbdbd86c9f9297ee10d6d91322309d27fda3 (patch) | |
| tree | 21e1458fe38aa806dc49854f2b54ba82f72678d7 /include | |
| parent | a94b2aad05d52cbd49012ccd900bcbcf29f9bc22 (diff) | |
| parent | c262522fd4ed453c079b09eb738ec4cbe4812478 (diff) | |
Merge tag 'u-boot-stm32-20210618' of https://source.denx.de/u-boot/custodians/u-boot-stm into next
- stm32mp157c-odyssey-som DT fixes
- stm32_qspi: Fix short data write operation
- dfu: set max_buf_size to erasesize also for NOR devices
- Fixes ethernet clock property name for STM32MP1 board
- STM32CubeProgrammer: various fixes
- clk: cosmetic update for clk-uclass
Diffstat (limited to 'include')
| -rw-r--r-- | include/dfu.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h index afada3959b7..f6868982df7 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -377,6 +377,17 @@ void dfu_initiated_callback(struct dfu_entity *dfu); */ void dfu_flush_callback(struct dfu_entity *dfu); +/** + * dfu_error_callback() - weak callback called at the DFU write error + * + * It is a callback function called by DFU stack after DFU write error. + * This function allows to manage some board specific behavior on DFU targets + * + * @dfu: pointer to the dfu_entity which cause the error + * @msg: the message of the error + */ +void dfu_error_callback(struct dfu_entity *dfu, const char *msg); + int dfu_transaction_initiate(struct dfu_entity *dfu, bool read); void dfu_transaction_cleanup(struct dfu_entity *dfu); |
