diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-06-11 16:03:33 -0600 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-08-09 11:16:58 -0400 |
commit | dd64827eb60de9f71b1a1d6aecf488104cdd7b96 (patch) | |
tree | e4d46c84e1d4b118a284261213eb5cc3db9ea4eb /common | |
parent | 3ee9593fce0b58124e667734d7bc8d44b11a7be2 (diff) |
dfu: defer parsing of device string to IO backend
Devices are not all identified by a single integer. To support
this, defer the parsing of the device string to the IO backed, so that
it can apply the appropriate rules.
SPI devices are specified as controller:chip_select. SPI/SF support will
be added soon.
MMC devices can also be specified as controller[.hwpart][:partition] in
many commands, although we don't support that syntax in DFU.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_dfu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 433bddd5d2..2633b30e55 100644 --- a/common/cmd_dfu.c +++ b/common/cmd_dfu.c @@ -24,8 +24,7 @@ static int do_dfu(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) int ret, i = 0; - ret = dfu_init_env_entities(interface, simple_strtoul(devstring, - NULL, 10)); + ret = dfu_init_env_entities(interface, devstring); if (ret) goto done; |