diff options
author | B, Ravi | 2016-07-28 17:39:16 +0530 |
---|---|---|
committer | Marek Vasut | 2016-09-27 23:30:19 +0200 |
commit | 52f2acc5e065b52499ee4a8e6baf886b8f5fa6da (patch) | |
tree | ee48f551206fc7a8fff62d1f1b4704f259bb04cf /include/spl.h | |
parent | 05341a87646aceac90a63624fbd5fa620f8dc263 (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/spl.h')
-rw-r--r-- | include/spl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h index 8afa0856c58..30eda36feff 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 |