diff options
author | Simon Glass <sjg@chromium.org> | 2016-05-01 11:36:06 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-05-17 09:54:43 -0600 |
commit | c0543bf6be4bac277d65c601f9150c7faf3d125e (patch) | |
tree | 30e90151a32ddeadd02842e514f211ad45148b55 /common/usb_storage.c | |
parent | 0cc65a7cc23bfbaab709d8934a6b8c73084852ea (diff) | |
download | u-boot-c0543bf6be4bac277d65c601f9150c7faf3d125e.tar.gz u-boot-c0543bf6be4bac277d65c601f9150c7faf3d125e.tar.bz2 u-boot-c0543bf6be4bac277d65c601f9150c7faf3d125e.zip |
dm: usb: Add a legacy block interface for USB storage
Add a legacy block interface for USB storage.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/usb_storage.c')
-rw-r--r-- | common/usb_storage.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/usb_storage.c b/common/usb_storage.c index 9285c95c05..80bf3db5d0 100644 --- a/common/usb_storage.c +++ b/common/usb_storage.c @@ -1555,4 +1555,11 @@ U_BOOT_DRIVER(usb_storage_blk) = { .id = UCLASS_BLK, .ops = &usb_storage_ops, }; +#else +U_BOOT_LEGACY_BLK(usb) = { + .if_typename = "usb", + .if_type = IF_TYPE_USB, + .max_devs = USB_MAX_STOR_DEV, + .desc = usb_dev_desc, +}; #endif |