Skip to content
Snippets Groups Projects
Commit de195620 authored by Michael Scott's avatar Michael Scott Committed by Marek Vasut
Browse files

fastboot: add "fastboot oem" command support


Add code stub to handle "fastboot oem __" command. As unlock is a common
fastboot command, distinguish that it is not implemented.

Signed-off-by: default avatarMichael Scott <michael.scott@linaro.org>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Tested-by: default avatarSteve Rae <srae@broadcom.com>
parent 193d7d15
No related branches found
No related tags found
No related merge requests found
......@@ -513,6 +513,17 @@ static void cb_flash(struct usb_ep *ep, struct usb_request *req)
}
#endif
static void cb_oem(struct usb_ep *ep, struct usb_request *req)
{
char *cmd = req->buf;
if (strncmp("unlock", cmd + 4, 8) == 0) {
fastboot_tx_write_str("FAILnot implemented");
}
else {
fastboot_tx_write_str("FAILunknown oem command");
}
}
struct cmd_dispatch_info {
char *cmd;
void (*cb)(struct usb_ep *ep, struct usb_request *req);
......@@ -541,6 +552,10 @@ static const struct cmd_dispatch_info cmd_dispatch_info[] = {
.cb = cb_flash,
},
#endif
{
.cmd = "oem",
.cb = cb_oem,
},
};
static void rx_handler_command(struct usb_ep *ep, struct usb_request *req)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment