瀏覽代碼

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>
Xingyu Wu 8 月之前
父節點
當前提交
24a0c6a085
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      cmd/fastboot.c

+ 2 - 2
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)