diff options
author | Lukasz Majewski <l.majewski@samsung.com> | 2013-07-18 13:19:14 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-07-29 23:01:33 +0200 |
commit | 6bed7ce569fc409843ff2537937ea1b5fd0f694d (patch) | |
tree | bb17efd44c3e2f69ae3dd0f0a0a6bd31a06a2204 /include/dfu.h | |
parent | 6dd30af0fa5c2f509f6f789789151268bdfcde0c (diff) | |
download | u-boot-imx-6bed7ce569fc409843ff2537937ea1b5fd0f694d.zip u-boot-imx-6bed7ce569fc409843ff2537937ea1b5fd0f694d.tar.gz u-boot-imx-6bed7ce569fc409843ff2537937ea1b5fd0f694d.tar.bz2 |
dfu: Implementation of target reset after communication with dfu-util's -R switch
This patch extends dfu code to support transmission with -R switch
specified at dfu-util.
When -R is specified, the extra USB_REQ_DFU_DETACH request is sent after
successful data transmission. Then dfu resources are released and reset
command is issued.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'include/dfu.h')
-rw-r--r-- | include/dfu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h index 6c7d227..1d4006d 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -109,6 +109,8 @@ const char *dfu_get_dev_type(enum dfu_device_type t); const char *dfu_get_layout(enum dfu_layout l); struct dfu_entity *dfu_get_entity(int alt); char *dfu_extract_token(char** e, int *n); +void dfu_trigger_reset(void); +bool dfu_reset(void); int dfu_read(struct dfu_entity *de, void *buf, int size, int blk_seq_num); int dfu_write(struct dfu_entity *de, void *buf, int size, int blk_seq_num); |