diff options
author | B, Ravi <ravibabu@ti.com> | 2017-05-04 13:15:29 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-12 15:37:09 +0300 |
commit | 66928afb6b55647a446560d32427a032e674301f (patch) | |
tree | e745c208e73ca2cdda117a6b62f14c41d83cc132 /drivers/dfu | |
parent | 1b19cbdbf7457629bfdf13d0995d7b0d1642c7fb (diff) | |
download | u-boot-66928afb6b55647a446560d32427a032e674301f.tar.xz |
common: dfu: ignore reset for spl-dfu
The SPL-DFU feature enable to load and
execute u-boot from RAM over usb from
PC using dfu-util.
Hence dfu-reset should not be issued
when dfu-util -R switch is issued.
Signed-off-by: Ravi Babu <ravibabu@ti.com>
Diffstat (limited to 'drivers/dfu')
-rw-r--r-- | drivers/dfu/dfu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index 8dacc1a6d1..ceb33e35ee 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -35,7 +35,11 @@ static struct hash_algo *dfu_hash_algo; */ __weak bool dfu_usb_get_reset(void) { +#ifdef CONFIG_SPL_DFU_NO_RESET + return false; +#else return true; +#endif } static int dfu_find_alt_num(const char *s) |