diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-17 10:47:47 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-23 18:11:40 -0500 |
commit | 758c706c6873fda806e3ce70d08bbb8ef3b81707 (patch) | |
tree | 5f23c46b4261dd0a022cc824bd1a0456b1beb769 /drivers/nvme/nvme.c | |
parent | 0d77f8f1ca870f7ecd710e701d46c565ff72c68b (diff) | |
download | u-boot-758c706c6873fda806e3ce70d08bbb8ef3b81707.zip u-boot-758c706c6873fda806e3ce70d08bbb8ef3b81707.tar.gz u-boot-758c706c6873fda806e3ce70d08bbb8ef3b81707.tar.bz2 |
bootstd: Add an NVMe bootdev
Add a bootdev for NVMe so that these devices can be used with standard
boot.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/nvme/nvme.c')
-rw-r--r-- | drivers/nvme/nvme.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c index 6d0d3f3..74e7a5b 100644 --- a/drivers/nvme/nvme.c +++ b/drivers/nvme/nvme.c @@ -6,6 +6,7 @@ #include <common.h> #include <blk.h> +#include <bootdev.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> @@ -893,6 +894,10 @@ int nvme_init(struct udevice *udev) if (ret) goto free_id; + ret = bootdev_setup_sibling_blk(ns_udev, "nvme_bootdev"); + if (ret) + return log_msg_ret("bootdev", ret); + ret = blk_probe_or_unbind(ns_udev); if (ret) goto free_id; |