summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2013-09-11 14:53:35 +0200
committerMarek Vasut <marex@denx.de>2013-09-24 17:51:35 +0200
commit765c5ae5bc913d9f06c518a9491d97c35ea00735 (patch)
treebc35b4c73157b3db833fa840733dcddaba5761a2 /include
parent3668ce3c8008705f271bb55ee863638de3bf8067 (diff)
downloadu-boot-imx-765c5ae5bc913d9f06c518a9491d97c35ea00735.zip
u-boot-imx-765c5ae5bc913d9f06c518a9491d97c35ea00735.tar.gz
u-boot-imx-765c5ae5bc913d9f06c518a9491d97c35ea00735.tar.bz2
dfu: Extract common DFU code to handle "dfu_alt_info" environment variable
New dfu_init_env_entities() function has been extracted from cmd_dfu.c and stored at dfu core. This is a dfu centric code, so it shall be processed in the core. Change-Id: I756c5de922fa31399d8804eaadc004ee98844ec2 Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Tested-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/dfu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h
index 7779710..392cef1 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -113,6 +113,7 @@ 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_init_env_entities(char *interface, int dev);
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);