diff options
author | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2018-10-15 02:21:10 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-11-14 09:16:27 -0800 |
commit | 4ad54ec4d5c98a297f8df2fe9a630a534557f717 (patch) | |
tree | 757d0192d9190c05e0417d4b3ee66b96cdb44734 /drivers | |
parent | c879eeb7aa95d753d4d9e39f43004943ed9d93b7 (diff) | |
download | u-boot-4ad54ec4d5c98a297f8df2fe9a630a534557f717.zip u-boot-4ad54ec4d5c98a297f8df2fe9a630a534557f717.tar.gz u-boot-4ad54ec4d5c98a297f8df2fe9a630a534557f717.tar.bz2 |
blk: Introduce IF_TYPE_VIRTIO
This adds a new block interface type for VirtIO block devices.
Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/blk-uclass.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c index 76ee3db..65a766e 100644 --- a/drivers/block/blk-uclass.c +++ b/drivers/block/blk-uclass.c @@ -23,6 +23,7 @@ static const char *if_typename_str[IF_TYPE_COUNT] = { [IF_TYPE_HOST] = "host", [IF_TYPE_NVME] = "nvme", [IF_TYPE_EFI] = "efi", + [IF_TYPE_VIRTIO] = "virtio", }; static enum uclass_id if_type_uclass_id[IF_TYPE_COUNT] = { @@ -37,6 +38,7 @@ static enum uclass_id if_type_uclass_id[IF_TYPE_COUNT] = { [IF_TYPE_HOST] = UCLASS_ROOT, [IF_TYPE_NVME] = UCLASS_NVME, [IF_TYPE_EFI] = UCLASS_EFI, + [IF_TYPE_VIRTIO] = UCLASS_VIRTIO, }; static enum if_type if_typename_to_iftype(const char *if_typename) |