diff options
author | Winter Wang <wente.wang@nxp.com> | 2016-11-17 16:55:26 +0800 |
---|---|---|
committer | Winter Wang <wente.wang@nxp.com> | 2016-11-18 12:52:19 +0800 |
commit | 9eeacefe0d235c0d8c9c48fc27e60ae17ac92c75 (patch) | |
tree | 6866804bd5cd3abea0f8e018d79fe0687cef09f2 /drivers/usb/gadget/bootctrl.c | |
parent | a5a753d62da1c6352235845629470e5337f4f347 (diff) | |
download | u-boot-imx-9eeacefe0d235c0d8c9c48fc27e60ae17ac92c75.zip u-boot-imx-9eeacefe0d235c0d8c9c48fc27e60ae17ac92c75.tar.gz u-boot-imx-9eeacefe0d235c0d8c9c48fc27e60ae17ac92c75.tar.bz2 |
MA-9027 fastboot: support set_active to 'a' 'b'
new version of fastboot set_active sends 'a'/'b'
instead of '_a'/'_b'
Change-Id: I1c56f9401e82cba6801e4eff59d413ce5a2617c7
Signed-off-by: Winter Wang <wente.wang@nxp.com>
Diffstat (limited to 'drivers/usb/gadget/bootctrl.c')
-rw-r--r-- | drivers/usb/gadget/bootctrl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/gadget/bootctrl.c b/drivers/usb/gadget/bootctrl.c index 5528179..6f19418 100644 --- a/drivers/usb/gadget/bootctrl.c +++ b/drivers/usb/gadget/bootctrl.c @@ -272,9 +272,11 @@ static unsigned int slotidx_from_suffix(char *suffix) { unsigned int slot = -1; - if (!strcmp(suffix, "_a")) + if (!strcmp(suffix, "_a") || + !strcmp(suffix, "a")) slot = 0; - else if (!strcmp(suffix, "_b")) + else if (!strcmp(suffix, "_b") || + !strcmp(suffix, "b")) slot = 1; return slot; |