summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorB, Ravi <ravibabu@ti.com>2016-07-28 17:39:16 +0530
committerMarek Vasut <marex@denx.de>2016-09-27 23:30:19 +0200
commit52f2acc5e065b52499ee4a8e6baf886b8f5fa6da (patch)
treeee48f551206fc7a8fff62d1f1b4704f259bb04cf /include
parent05341a87646aceac90a63624fbd5fa620f8dc263 (diff)
spl: dfu: adding dfu support functions for SPL-DFU
Adding support functions to run dfu spl commands. Signed-off-by: Ravi Babu <ravibabu@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r--include/spl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index 8afa0856c5..30eda36fef 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -144,4 +144,12 @@ void spl_board_init(void);
*/
bool spl_was_boot_source(void);
+/**
+ * spl_dfu_cmd- run dfu command with chosen mmc device interface
+ * @param usb_index - usb controller number
+ * @param mmc_dev - mmc device nubmer
+ *
+ * @return 0 on success, otherwise error code
+ */
+int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr);
#endif