mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
bootstd: USB devtype detection for script boot
Change the device type from "usb_mass_storage" to "usb" when booting a script. Before this change: => printenv devtype devtype=usb_mass_storage After this change: => printenv devtype devtype=usb Signed-off-by: John Clark <inindev@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
338b67f76c
commit
7dde5620ec
1 changed files with 4 additions and 1 deletions
|
@ -190,7 +190,10 @@ static int script_boot(struct udevice *dev, struct bootflow *bflow)
|
||||||
ulong addr;
|
ulong addr;
|
||||||
int ret;
|
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)
|
if (!ret)
|
||||||
ret = env_set_hex("devnum", desc->devnum);
|
ret = env_set_hex("devnum", desc->devnum);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
|
|
Loading…
Reference in a new issue