aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/gadget_chips.h
diff options
context:
space:
mode:
authorKyungmin Park <kyungmin.park@samsung.com>2009-01-28 15:45:50 +0000
committerAndy Green <agreen@octopus.localdomain>2009-01-28 15:45:50 +0000
commit2b9df57ebe5ff306fbbc5cabc0c8b82275dd245d (patch)
treec7edd65faf2f38e4f8994feb339f57b3b7cc7da4 /drivers/usb/gadget/gadget_chips.h
parent2d09b65cb83a50cd4161dd06591a3a5d0c65c17f (diff)
introduce-samsung-s3c64xx-usb-otg-driver.patch
This was posted to the linux-usb list in Dec 2008 Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
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 ec6d439a2aa..7f9330578f9 100644
--- a/drivers/usb/gadget/gadget_chips.h
+++ b/drivers/usb/gadget/gadget_chips.h
@@ -104,6 +104,12 @@
#define gadget_is_s3c2410(g) 0
#endif
+#ifdef CONFIG_USB_GADGET_S3C_OTGD_HS
+#define gadget_is_s3c64xx(g) !strcmp("s3c-otg-device", (g)->name)
+#else
+#define gadget_is_s3c64xx(g) 0
+#endif
+
#ifdef CONFIG_USB_GADGET_AT91
#define gadget_is_at91(g) !strcmp("at91_udc", (g)->name)
#else
@@ -231,6 +237,8 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
return 0x22;
else if (gadget_is_ci13xxx(gadget))
return 0x23;
+ else if (gadget_is_s3c64xx(gadget))
+ return 0x24;
return -ENOENT;
}