diff options
| author | Zhikang Zhang <[email protected]> | 2017-08-03 02:30:56 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-08-13 15:17:30 -0400 |
| commit | ffab6945eca97c23612d8434833dcdaa4a8556dd (patch) | |
| tree | 7c4795a374066279193cdf1ff5796ac3391cc43c /disk | |
| parent | 1b69ce2fc0ecd1741645d6084be45e562156b5ae (diff) | |
dm: blk: part: Add UCLASS_NVME and IF_TYPE_NVME
This adds a new uclass id and block interface type for NVMe.
Signed-off-by: Zhikang Zhang <[email protected]>
Signed-off-by: Wenbin Song <[email protected]>
Signed-off-by: Bin Meng <[email protected]>
Signed-off-by: Jon Nettleton <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'disk')
| -rw-r--r-- | disk/part.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/disk/part.c b/disk/part.c index e640a55163f..d76aa903a8c 100644 --- a/disk/part.c +++ b/disk/part.c @@ -132,6 +132,7 @@ void dev_print (struct blk_desc *dev_desc) case IF_TYPE_SD: case IF_TYPE_MMC: case IF_TYPE_USB: + case IF_TYPE_NVME: printf ("Vendor: %s Rev: %s Prod: %s\n", dev_desc->vendor, dev_desc->revision, @@ -263,7 +264,10 @@ static void print_part_header(const char *type, struct blk_desc *dev_desc) puts ("MMC"); break; case IF_TYPE_HOST: - puts("HOST"); + puts ("HOST"); + break; + case IF_TYPE_NVME: + puts ("NVMe"); break; default: puts ("UNKNOWN"); |
