summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-17 10:48:08 -0700
committerTom Rini <trini@konsulko.com>2023-01-23 18:11:41 -0500
commiteacc261178b9c8024cb8de89ee4ca6c68d80d96a (patch)
treee40fcef678725303048937f4b2d5a393c8613be1 /drivers/usb
parent79a7d4a61ff34c7745811c7b3090a60b230c2ef9 (diff)
downloadu-boot-eacc261178b9c8024cb8de89ee4ca6c68d80d96a.tar.gz
u-boot-eacc261178b9c8024cb8de89ee4ca6c68d80d96a.tar.bz2
u-boot-eacc261178b9c8024cb8de89ee4ca6c68d80d96a.zip
bootstd: Add a new pre-scan priority for bootdevs
We need extensions to be set up before we start trying to boot any of the bootdevs. Add a new priority before all the others for tht sort of thing. Also add a 'none' option, so that the first one is not 0. While we are here, comment enum bootdev_prio_t fully and expand the test for the 'bootdev hunt' command. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/usb_bootdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/usb_bootdev.c b/drivers/usb/host/usb_bootdev.c
index 66d0b6ae8f..32919f9928 100644
--- a/drivers/usb/host/usb_bootdev.c
+++ b/drivers/usb/host/usb_bootdev.c
@@ -15,7 +15,7 @@ static int usb_bootdev_bind(struct udevice *dev)
{
struct bootdev_uc_plat *ucp = dev_get_uclass_plat(dev);
- ucp->prio = BOOTDEVP_3_SCAN_SLOW;
+ ucp->prio = BOOTDEVP_5_SCAN_SLOW;
return 0;
}
@@ -42,7 +42,7 @@ U_BOOT_DRIVER(usb_bootdev) = {
};
BOOTDEV_HUNTER(usb_bootdev_hunter) = {
- .prio = BOOTDEVP_3_SCAN_SLOW,
+ .prio = BOOTDEVP_5_SCAN_SLOW,
.uclass = UCLASS_USB,
.hunt = usb_bootdev_hunt,
.drv = DM_DRIVER_REF(usb_bootdev),