projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cc65a7
)
dm: usb: Add a legacy block interface for USB storage
author
Simon Glass
<sjg@chromium.org>
Sun, 1 May 2016 17:36:06 +0000
(11:36 -0600)
committer
Simon Glass
<sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000
(09:54 -0600)
Add a legacy block interface for USB storage.
Signed-off-by: Simon Glass <sjg@chromium.org>
common/usb_storage.c
patch
|
blob
|
history
diff --git
a/common/usb_storage.c
b/common/usb_storage.c
index 9285c95c0553b719016f6edf38ecc6c82f486c74..80bf3db5d0c46f46782603f249f4c93891c65800 100644
(file)
--- 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