diff mbox

[U-Boot,v2,18/44] dm: usb: Add a legacy block interface for USB storage

Message ID 1462124192-8748-19-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass May 1, 2016, 5:36 p.m. UTC
Add a legacy block interface for USB storage.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v2: None

 common/usb_storage.c | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Simon Glass May 14, 2016, 7:35 p.m. UTC | #1
On 1 May 2016 at 11:36, Simon Glass <sjg@chromium.org> wrote:
> Add a legacy block interface for USB storage.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> Changes in v2: None
>
>  common/usb_storage.c | 7 +++++++
>  1 file changed, 7 insertions(+)

Applied to u-boot-dm.
diff mbox

Patch

diff --git a/common/usb_storage.c b/common/usb_storage.c
index 9285c95..80bf3db 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