diff options
author | Tom Rini <trini@konsulko.com> | 2023-07-20 21:31:31 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-07-20 21:31:31 -0400 |
commit | e896279ac39ebb97f23e6132bf7668a61e1cd86b (patch) | |
tree | 24e035ebd13dbd272da4b3845a1dfcac66e4a86f /boot/bootmeth_script.c | |
parent | 7fe5accb4516144b7abb8f183640cdf50423121e (diff) | |
parent | 24142ead21ed5e4d2d6f39dd410d91d815ea1ae2 (diff) |
Merge tag 'dm-pull-20jul23' of https://source.denx.de/u-boot/custodians/u-boot-dm
binman mkimage and template enhancements
misc fixes
Diffstat (limited to 'boot/bootmeth_script.c')
-rw-r--r-- | boot/bootmeth_script.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/boot/bootmeth_script.c b/boot/bootmeth_script.c index 225eb18ee6..a4050c384d 100644 --- a/boot/bootmeth_script.c +++ b/boot/bootmeth_script.c @@ -190,7 +190,10 @@ static int script_boot(struct udevice *dev, struct bootflow *bflow) ulong addr; int ret; - ret = env_set("devtype", blk_get_devtype(bflow->blk)); + if (desc->uclass_id == UCLASS_USB) + ret = env_set("devtype", "usb"); + else + ret = env_set("devtype", blk_get_devtype(bflow->blk)); if (!ret) ret = env_set_hex("devnum", desc->devnum); if (!ret) |