cmd: ums: add getting the default parameters from env
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 17 Nov 2020 09:56:34 +0000 (10:56 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 17 Oct 2023 04:19:25 +0000 (13:19 +0900)
commit5a9ccdf9eef0614c79101688ecb042d6ba5c965d
treeb238742223fe1fbd129bcca14edc280a8e266200
parenta70f0e400cb50c0485c97b8716db8c76929b2f45
cmd: ums: add getting the default parameters from env

Add reading command parameters from the environment. The same environment
variables are used as for the "dfu" and "thor" commands. This allows to
specify USB controller ("dfu_usb_con"), device interface ("dfu_interface")
and device number ("dfu_device"). Such change allows to call "ums" without
any parameters for the default storage device.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: If725408159937dc50cb375d5c80455dac5cf9b37
cmd/usb_mass_storage.c