summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorB, Ravi <ravibabu@ti.com>2017-05-04 15:45:29 +0530
committerTom Rini <trini@konsulko.com>2017-05-12 08:37:09 -0400
commit66928afb6b55647a446560d32427a032e674301f (patch)
treee745c208e73ca2cdda117a6b62f14c41d83cc132 /common
parent1b19cbdbf7457629bfdf13d0995d7b0d1642c7fb (diff)
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 'common')
-rw-r--r--common/dfu.c2
-rw-r--r--common/spl/Kconfig4
2 files changed, 5 insertions, 1 deletions
diff --git a/common/dfu.c b/common/dfu.c
index 0e9f5f59c80..546a1ab9b4c 100644
--- a/common/dfu.c
+++ b/common/dfu.c
@@ -88,7 +88,7 @@ exit:
board_usb_cleanup(usbctrl_index, USB_INIT_DEVICE);
if (dfu_reset)
- run_command("reset", 0);
+ do_reset(NULL, 0, 0, NULL);
g_dnl_clear_detach();
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 12313515e3a..f51ae2c4847 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -6,6 +6,9 @@ config SUPPORT_SPL
config SUPPORT_TPL
bool
+config SPL_DFU_NO_RESET
+ bool
+
config SPL
bool
depends on SUPPORT_SPL
@@ -646,6 +649,7 @@ config SPL_USBETH_SUPPORT
config SPL_DFU_SUPPORT
bool "Support DFU (Device Firmware Upgarde)"
select SPL_HASH_SUPPORT
+ select SPL_DFU_NO_RESET
depends on SPL_RAM_SUPPORT
help
This feature enables the DFU (Device Firmware Upgarde) in SPL with