u-boot-brain/drivers
Lukasz Majewski 1cc03c5c53 dfu: Provide means to find difference between dfu-util -e and -R
This commit provides distinction between DFU device detach and reset.
The -R behavior is preserved with proper handling of the dfu-util's -e
switch, which detach the DFU device.

By running dfu-util -e; one can force device to finish the execution of
dfu command on target and execute some other scripted commands.

Moreover, some naming has been changed - the dfu_reset() method now is known
as dfu_detach(). New name better reflects the purpose of the code.

It was also necessary to increase the number of usb_gadget_handle_interrupts()
calls since we also must wait for detection of the USB reset event.

Example usage:
1. -e (detach) switch
 dfu-util -a0 -D file1.bin;dfu-util -a3 -D uImage;dfu-util -e

 access to u-boot prompt.

2. -R (reset) switch
 dfu-util -a0 -D file1.bin;dfu-util -R -a3 -D uImage

 target board reset

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
2014-09-02 14:29:28 +02:00
..
bios_emulator kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
block ahci: provide sunxi SATA driver using AHCI platform framework 2014-07-31 15:37:22 +02:00
bootcount qe: move immap_qe.h from arch directory into common directory 2014-07-22 16:25:54 -07:00
core dm: Add dm_scan_other() to locate board-specific devices 2014-07-23 14:08:37 +01:00
crypto includes: move openssl headers to include/u-boot 2014-06-19 11:19:04 -04:00
ddr/fsl driver/ddr: Fix DDR register timing_cfg_8 2014-07-22 16:25:55 -07:00
demo dm: Give the demo uclass a name 2014-07-23 14:08:37 +01:00
dfu dfu: Provide means to find difference between dfu-util -e and -R 2014-09-02 14:29:28 +02:00
dma omap: clean-up dead configs 2014-08-09 11:17:04 -04:00
fpga m68k: Fix warnings with gcc 4.6 2014-06-11 16:27:05 -04:00
gpio Merge branch 'u-boot-sunxi/master' into 'u-boot-arm/master' 2014-07-28 10:12:45 +02:00
hwmon kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
i2c Merge branch 'u-boot-sunxi/master' into 'u-boot-arm/master' 2014-07-28 10:12:45 +02:00
input stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
memory ARM: keystone: aemif: move aemif driver to drivers/memory/ti-aemif.c 2014-06-19 17:53:58 -04:00
misc cros_ec: Fix two bugs in the SPI implementation 2014-08-06 00:18:01 +05:30
mmc socfpga: cleanup socfpga_dw_mmc 2014-08-30 07:46:38 -04:00
mtd arm/kirkwood/nand: allow forced disabling for subpage writes 2014-08-30 07:46:41 -04:00
net arm: bcm281xx: net: Add Ethernet Driver 2014-08-30 07:46:39 -04:00
pci Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2014-08-29 11:06:51 -04:00
pcmcia powerpc: mpc8xx: remove svm_sc8xx board 2014-08-21 12:01:12 -04:00
power pmic: pmic_pfuze100: Use a shorter name for PMIC name 2014-08-08 10:29:41 +02:00
pwm pwm, imx6: add support for pwm modul on imx6 2014-07-23 12:25:42 +02:00
qe driver/qe: update status of QE microcode 2014-08-20 10:44:16 -07:00
rtc RTC: add support for DS1339 (using DS1307 driver) 2014-08-14 14:45:58 +02:00
serial serial: move nios2-yanu.h into opencores_yanu driver 2014-08-30 17:48:43 +08:00
sound build: define CPU only when arch/${ARCH}/cpu/${CPU} exists 2014-07-07 19:42:34 -04:00
spi spi, spi_mxc: do not hang in spi_xchg_single 2014-08-06 00:18:01 +05:30
tpm tpm: don't use unneeded double brackets 2014-07-07 19:43:01 -04:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb dfu: Provide means to find difference between dfu-util -e and -R 2014-09-02 14:29:28 +02:00
video lib, linux: move linux specific defines to linux/compat.h 2014-08-25 19:25:03 -04:00
watchdog blackfin: Fix warning about undefined function 2014-07-07 19:47:09 -04:00
Makefile pwm, imx6: add support for pwm modul on imx6 2014-07-23 12:25:42 +02:00