summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2019-05-14 22:49:31 -0700
committerYe Li <ye.li@nxp.com>2022-04-06 15:58:47 +0800
commit83e05a1be61b88c220d7677122376a60c8b688ff (patch)
tree0f91464ae78f33ab5d34b7d92e2021d7000b567a /cmd
parent0c537b10401e94620ee110c21b5cfcaaa5c05121 (diff)
MLK-18591-3 android: Add FSL android fastboot support
Porting the FSL android fastboot features from imx u-boot v2018.03 to support all SoCs: imx6/imx7/imx7ulp/imx8/imx8m. The UUU commands like UCmd and ACmd are also added. Users need set CONFIG_FASTBOOT_UUU_SUPPORT=y to enable the feature. Signed-off-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 65120b06a7f750b9b1a6e0db3d2082cc7088d5a8) (cherry picked from commit 9b149c2a28829fe7017f83981d634157bc31cc94) (cherry picked from commit 9f99e9de1d37e9f6c02c1b27348ea3dcdab94569) (cherry picked from commit 6ae1c043431a4987f563026b179b33945a5880ee) (cherry picked from commit 806c9ba15e8742a23b1b9147d9b85219133b6f10) (cherry picked from commit 1357b84595d617f6ebc09f23e7b9d14b080f8048)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/fastboot.c3
-rw-r--r--cmd/read.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/cmd/fastboot.c b/cmd/fastboot.c
index 033a2c95e8..4bb86683e0 100644
--- a/cmd/fastboot.c
+++ b/cmd/fastboot.c
@@ -52,6 +52,9 @@ static int do_fastboot_usb(int argc, char *const argv[],
pr_err("Error: Wrong USB controller index format\n");
return CMD_RET_FAILURE;
}
+#ifdef CONFIG_FASTBOOT_USB_DEV
+ controller_index = CONFIG_FASTBOOT_USB_DEV;
+#endif
ret = usb_gadget_initialize(controller_index);
if (ret) {
diff --git a/cmd/read.c b/cmd/read.c
index 99c7e3854e..e573073a19 100644
--- a/cmd/read.c
+++ b/cmd/read.c
@@ -12,7 +12,7 @@
#include <command.h>
#include <part.h>
-int do_read(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
+int do_raw_read(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
{
char *ep;
struct blk_desc *dev_desc = NULL;
@@ -75,7 +75,7 @@ int do_read(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
}
U_BOOT_CMD(
- read, 6, 0, do_read,
+ read, 6, 0, do_raw_read,
"Load binary data from a partition",
"<interface> <dev[:part]> addr blk# cnt"
);