mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
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>
This commit is contained in:
parent
79a7d4a61f
commit
eacc261178
12 changed files with 84 additions and 44 deletions
|
@ -60,7 +60,7 @@ static int eth_bootdev_bind(struct udevice *dev)
|
|||
{
|
||||
struct bootdev_uc_plat *ucp = dev_get_uclass_plat(dev);
|
||||
|
||||
ucp->prio = BOOTDEVP_4_NET_BASE;
|
||||
ucp->prio = BOOTDEVP_6_NET_BASE;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ U_BOOT_DRIVER(eth_bootdev) = {
|
|||
};
|
||||
|
||||
BOOTDEV_HUNTER(eth_bootdev_hunt) = {
|
||||
.prio = BOOTDEVP_4_NET_BASE,
|
||||
.prio = BOOTDEVP_6_NET_BASE,
|
||||
.uclass = UCLASS_ETH,
|
||||
.hunt = eth_bootdev_hunt,
|
||||
.drv = DM_DRIVER_REF(eth_bootdev),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue