1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-03 00:11:30 +02:00
Files
u-boot-megous/common
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
..
2014-07-18 17:53:24 -04:00
2013-04-01 16:33:52 -04:00
2014-08-24 11:28:10 +08:00
2014-06-11 16:25:47 -04:00
2014-06-11 16:25:47 -04:00
2014-02-04 16:32:20 +01:00
2014-05-27 10:21:32 -04:00
2014-08-09 11:17:03 -04:00
2014-08-09 11:16:57 -04:00
2014-08-09 11:16:57 -04:00
2014-05-27 10:21:32 -04:00
2014-06-20 11:54:29 -06:00
2014-06-05 14:38:38 -04:00
2013-08-16 13:45:15 -04:00
2014-03-22 14:47:22 -06:00
2014-08-14 15:00:57 +02:00
2013-05-31 17:12:03 -05:00
2014-05-12 15:19:46 -04:00
2012-08-09 23:39:18 +02:00
2014-07-23 14:06:17 +01:00
2013-04-01 16:33:52 -04:00
2014-01-14 09:01:06 -05:00
2014-03-21 16:43:59 -04:00
2014-01-14 09:01:06 -05:00
2014-04-17 17:44:36 -04:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2014-06-20 11:54:29 -06:00
2014-05-29 17:45:31 -04:00
2014-07-18 17:53:23 -04:00