summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2014-06-11 16:03:33 -0600
committerTom Rini <trini@ti.com>2014-08-09 11:16:58 -0400
commitdd64827eb60de9f71b1a1d6aecf488104cdd7b96 (patch)
treee4d46c84e1d4b118a284261213eb5cc3db9ea4eb /common
parent3ee9593fce0b58124e667734d7bc8d44b11a7be2 (diff)
downloadu-boot-imx-dd64827eb60de9f71b1a1d6aecf488104cdd7b96.zip
u-boot-imx-dd64827eb60de9f71b1a1d6aecf488104cdd7b96.tar.gz
u-boot-imx-dd64827eb60de9f71b1a1d6aecf488104cdd7b96.tar.bz2
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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c
index 433bddd..2633b30 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;