| // SPDX-License-Identifier: GPL-2.0+ |
| * Texas Instruments, <www.ti.com> |
| * Ravi B <ravibabu@ti.com> |
| #include <linux/compiler.h> |
| static int run_dfu(int usb_index, char *interface, char *devstring) |
| ret = dfu_init_env_entities(interface, devstring); |
| run_usb_dnl_gadget(usb_index, "usb_dnl_dfu"); |
| int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr) |
| /* set default environment */ |
| set_default_env(NULL, 0); |
| str_env = env_get(dfu_alt_info); |
| pr_err("\"dfu_alt_info\" env variable not defined!\n"); |
| ret = env_set("dfu_alt_info", str_env); |
| pr_err("unable to set env variable \"dfu_alt_info\"!\n"); |
| return run_dfu(usbctrl, interface, devstr); |