Skip to content
Snippets Groups Projects
Commit 66928afb authored by B, Ravi's avatar B, Ravi Committed by Tom Rini
Browse files

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: default avatarRavi Babu <ravibabu@ti.com>
parent 1b19cbdb
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ exit: ...@@ -88,7 +88,7 @@ exit:
board_usb_cleanup(usbctrl_index, USB_INIT_DEVICE); board_usb_cleanup(usbctrl_index, USB_INIT_DEVICE);
if (dfu_reset) if (dfu_reset)
run_command("reset", 0); do_reset(NULL, 0, 0, NULL);
g_dnl_clear_detach(); g_dnl_clear_detach();
......
...@@ -6,6 +6,9 @@ config SUPPORT_SPL ...@@ -6,6 +6,9 @@ config SUPPORT_SPL
config SUPPORT_TPL config SUPPORT_TPL
bool bool
config SPL_DFU_NO_RESET
bool
config SPL config SPL
bool bool
depends on SUPPORT_SPL depends on SUPPORT_SPL
...@@ -646,6 +649,7 @@ config SPL_USBETH_SUPPORT ...@@ -646,6 +649,7 @@ config SPL_USBETH_SUPPORT
config SPL_DFU_SUPPORT config SPL_DFU_SUPPORT
bool "Support DFU (Device Firmware Upgarde)" bool "Support DFU (Device Firmware Upgarde)"
select SPL_HASH_SUPPORT select SPL_HASH_SUPPORT
select SPL_DFU_NO_RESET
depends on SPL_RAM_SUPPORT depends on SPL_RAM_SUPPORT
help help
This feature enables the DFU (Device Firmware Upgarde) in SPL with This feature enables the DFU (Device Firmware Upgarde) in SPL with
......
...@@ -35,7 +35,11 @@ static struct hash_algo *dfu_hash_algo; ...@@ -35,7 +35,11 @@ static struct hash_algo *dfu_hash_algo;
*/ */
__weak bool dfu_usb_get_reset(void) __weak bool dfu_usb_get_reset(void)
{ {
#ifdef CONFIG_SPL_DFU_NO_RESET
return false;
#else
return true; return true;
#endif
} }
static int dfu_find_alt_num(const char *s) static int dfu_find_alt_num(const char *s)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment