summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/gadget_chips.h
diff options
context:
space:
mode:
authorThomas Dahlmann <thomas.dahlmann@amd.com>2007-07-16 21:40:54 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-19 17:46:05 -0700
commit55d402d854ade6b63b26e958f201ee2ef00b7b15 (patch)
treebb91980a14cf9c21b466680d54b0f22a7d49554d /drivers/usb/gadget/gadget_chips.h
parentbeafef072af10bc8497c9ee51ce2804aa7da26be (diff)
downloadop-kernel-dev-55d402d854ade6b63b26e958f201ee2ef00b7b15.zip
op-kernel-dev-55d402d854ade6b63b26e958f201ee2ef00b7b15.tar.gz
USB: amd5536 UDC driver (in GEODE southbridge)
Driver for the AMD5536 UDC, as found in the AMD Geode CS5536 (southbridge). This is a high speed DMA-capable controller, which can also be used in OTG configurations (which are not supported by this patch). Acked-by: Jordan Crouse <jordan.crouse@amd.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/gadget_chips.h')
-rw-r--r--drivers/usb/gadget/gadget_chips.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h
index 53e9139..e7fbefef 100644
--- a/drivers/usb/gadget/gadget_chips.h
+++ b/drivers/usb/gadget/gadget_chips.h
@@ -17,6 +17,12 @@
#define gadget_is_net2280(g) 0
#endif
+#ifdef CONFIG_USB_GADGET_AMD5536UDC
+#define gadget_is_amd5536udc(g) !strcmp("amd5536udc", (g)->name)
+#else
+#define gadget_is_amd5536udc(g) 0
+#endif
+
#ifdef CONFIG_USB_GADGET_DUMMY_HCD
#define gadget_is_dummy(g) !strcmp("dummy_udc", (g)->name)
#else
@@ -202,6 +208,8 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
return 0x18;
else if (gadget_is_fsl_usb2(gadget))
return 0x19;
+ else if (gadget_is_amd5536udc(gadget))
+ return 0x20;
else if (gadget_is_m66592(gadget))
return 0x20;
return -ENOENT;
OpenPOWER on IntegriCloud