projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OMAP3: igep00x0: Fix boot hang and add support for status LED.
[oweals/u-boot.git]
/
common
/
cmd_usb_mass_storage.c
diff --git
a/common/cmd_usb_mass_storage.c
b/common/cmd_usb_mass_storage.c
index 5e0211683c8ff89d806141211434d75b3288ba3e..2c879ea0837c5e13e69fb60333bb921e68b2d991 100644
(file)
--- a/
common/cmd_usb_mass_storage.c
+++ b/
common/cmd_usb_mass_storage.c
@@
-77,8
+77,13
@@
int do_usb_mass_storage(cmd_tbl_t *cmdtp, int flag,
return CMD_RET_USAGE;
usb_controller = argv[1];
return CMD_RET_USAGE;
usb_controller = argv[1];
- devtype = "mmc";
- devnum = argv[2];
+ if (argc >= 4) {
+ devtype = argv[2];
+ devnum = argv[3];
+ } else {
+ devtype = "mmc";
+ devnum = argv[2];
+ }
ums = ums_init(devtype, devnum);
if (!ums)
ums = ums_init(devtype, devnum);
if (!ums)
@@
-152,7
+157,8
@@
exit:
return CMD_RET_SUCCESS;
}
return CMD_RET_SUCCESS;
}
-U_BOOT_CMD(ums,
CONFIG_SYS_MAXARGS
, 1, do_usb_mass_storage,
+U_BOOT_CMD(ums,
4
, 1, do_usb_mass_storage,
"Use the UMS [User Mass Storage]",
"Use the UMS [User Mass Storage]",
- "ums <USB_controller> <mmc_dev> e.g. ums 0 0"
+ "ums <USB_controller> [<devtype>] <devnum> e.g. ums 0 mmc 0\n"
+ " devtype defaults to mmc"
);
);