Add code stub to handle "fastboot oem __" command. As unlock is a common
fastboot command, distinguish that it is not implemented.
Signed-off-by: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Tested-by: Steve Rae <srae@broadcom.com>
 }
 #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);
                .cb = cb_flash,
        },
 #endif
+       {
+               .cmd = "oem",
+               .cb = cb_oem,
+       },
 };
 
 static void rx_handler_command(struct usb_ep *ep, struct usb_request *req)