From 26cc5129ee647efdb88570b82994c0d19f1a2a8c Mon Sep 17 00:00:00 2001 From: Lei Wen Date: Wed, 5 Oct 2011 08:11:40 -0700 Subject: USB: gadaget: add Marvell controller support Signed-off-by: Lei Wen --- drivers/usb/gadget/gadget_chips.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'drivers/usb/gadget/gadget_chips.h') diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h index 9bb7e2e77a..5d7b638b38 100644 --- a/drivers/usb/gadget/gadget_chips.h +++ b/drivers/usb/gadget/gadget_chips.h @@ -150,6 +150,11 @@ #define gadget_is_m66592(g) 0 #endif +#ifdef CONFIG_USB_GADGET_MV +#define gadget_is_mv(g) (!strcmp("mv_udc", (g)->name)) +#else +#define gadget_is_mv(g) 0 +#endif /* * CONFIG_USB_GADGET_SX2 @@ -216,5 +221,7 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget) return 0x20; else if (gadget_is_m66592(gadget)) return 0x21; + else if (gadget_is_mv(gadget)) + return 0x22; return -ENOENT; } -- cgit