Commit c0543bf6be4bac277d65c601f9150c7faf3d125e
1 parent
0cc65a7cc2
Exists in
v2017.01-smarct4x
and in
25 other branches
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>
Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff
common/usb_storage.c
... | ... | @@ -1555,5 +1555,12 @@ |
1555 | 1555 | .id = UCLASS_BLK, |
1556 | 1556 | .ops = &usb_storage_ops, |
1557 | 1557 | }; |
1558 | +#else | |
1559 | +U_BOOT_LEGACY_BLK(usb) = { | |
1560 | + .if_typename = "usb", | |
1561 | + .if_type = IF_TYPE_USB, | |
1562 | + .max_devs = USB_MAX_STOR_DEV, | |
1563 | + .desc = usb_dev_desc, | |
1564 | +}; | |
1558 | 1565 | #endif |