cmd: rockusb: forbid to flash mmc 1(sdcard)

Change-Id: I186bfe127e6146aab1df52f8bafb20da9d1647d2
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-08-28 14:51:44 +08:00 committed by Jianhong Chen
parent 5e135dc791
commit 535b44c04d
1 changed files with 5 additions and 0 deletions

View File

@ -154,6 +154,11 @@ static int do_rkusb(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
devtype = argv[2];
devnum = argv[3];
if (!strcmp(devtype, "mmc") && !strcmp(devnum, "1")) {
pr_err("Forbid to flash mmc 1(sdcard)\n");
return CMD_RET_FAILURE;
}
g_rkusb = &rkusb;
rc = rkusb_init(devtype, devnum);
if (rc < 0)