summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXingyu Wu <xingyu.wu@starfivetech.com>2023-09-11 09:11:22 +0300
committerXingyu Wu <xingyu.wu@starfivetech.com>2023-09-11 09:13:55 +0300
commit24a0c6a085b3c17262daaadf0f83d2c3fb11eaf9 (patch)
treebdb040bc9e10fb848b4d3971266490a7bd46c5ee
parent081aa0e676156437fe6326402936c4d1f07818c1 (diff)
downloadu-boot-24a0c6a085b3c17262daaadf0f83d2c3fb11eaf9.tar.xz
cmd: fastboot: Fix failure to enter fastboot
Only USB host and device are same IP and should be changed mode with initialization before fastboot in Devkits. Add the target of Devkits to math the board. Fixes: 67df54127e38 ("cmd: fastboot: Add presetting on StarFive SoC before fastboot") Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
-rw-r--r--cmd/fastboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/fastboot.c b/cmd/fastboot.c
index fa6863ccc7..47d55fad57 100644
--- a/cmd/fastboot.c
+++ b/cmd/fastboot.c
@@ -43,12 +43,12 @@ static int do_fastboot_usb(int argc, char *const argv[],
char *endp;
int ret;
-#ifdef CONFIG_FASTBOOT_STARFIVE_MAX_BLK_WRITE
+#ifdef CONFIG_TARGET_STARFIVE_DEVKITS
#define RUN_FB_SF_PRESETTING \
"fdt set /soc/usbdrd starfive,usb2-only <0x1>;" \
"fdt set /soc/usbdrd/usb@10100000 dr_num_mode <0x2>;"
- run_command_list(RUN_FB_SF_PRESETTING, -1, 0);
+ run_command_list(RUN_FB_SF_PRESETTING, -1, 0);
#endif
if (argc < 2)