| // SPDX-License-Identifier: GPL-2.0+ |
| * cmd_sdp.c -- sdp command |
| * Copyright (C) 2016 Toradex |
| * Author: Stefan Agner <stefan.agner@toradex.com> |
| #include <linux/printk.h> |
| static int do_sdp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) |
| controller_index = simple_strtoul(argv[1], NULL, 0); |
| ret = udc_device_get_by_index(controller_index, &udc); |
| ret = g_dnl_register("usb_dnl_sdp"); |
| pr_err("SDP dnl register failed: %d\n", ret); |
| pr_err("SDP init failed: %d\n", ret); |
| /* This command typically does not return but jumps to an image */ |
| U_BOOT_CMD(sdp, 2, 1, do_sdp, |
| "Serial Downloader Protocol", |
| " - serial downloader protocol via <USB_controller>\n" |