mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-07-06 06:21:51 +00:00
cmd: fastboot: Add presetting on StarFive SoC before fastboot
Add the presetting about usb as device in fastboot function. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
This commit is contained in:
parent
706fab8ccb
commit
67df54127e
1 changed files with 8 additions and 0 deletions
|
@ -43,6 +43,14 @@ static int do_fastboot_usb(int argc, char *const argv[],
|
|||
char *endp;
|
||||
int ret;
|
||||
|
||||
#ifdef CONFIG_FASTBOOT_STARFIVE_MAX_BLK_WRITE
|
||||
#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);
|
||||
#endif
|
||||
|
||||
if (argc < 2)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue