/* * Copyright 2008 - 2009 Windriver, * Author: Tom Rix * * (C) Copyright 2014 Linaro, Ltd. * Rob Herring * * SPDX-License-Identifier: GPL-2.0+ */ #include #include #include static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) { int ret; ret = g_dnl_register("usb_dnl_fastboot"); if (ret) return ret; while (1) { if (ctrlc()) break; usb_gadget_handle_interrupts(); } g_dnl_unregister(); return CMD_RET_SUCCESS; } U_BOOT_CMD( fastboot, 1, 0, do_fastboot, "use USB Fastboot protocol", "\n" " - run as a fastboot usb device" );