* [PATCH v14 10/10] USB/ppc4xx:Synopsys DWC OTG driver enable gadget support
@ 2011-10-07 2:31 tmarri
2011-10-07 11:07 ` Sergei Shtylyov
0 siblings, 1 reply; 4+ messages in thread
From: tmarri @ 2011-10-07 2:31 UTC (permalink / raw)
To: linux-usb, linuxppc-dev; +Cc: tmarri, greg, Mark Miesfeld, Fushen Chen
From: Tirumala Marri <tmarri@apm.com>
Enable gadget support
Signed-off-by: Tirumala R Marri <tmarri@apm.com>
Signed-off-by: Fushen Chen <fchen@apm.com>
Signed-off-by: Mark Miesfeld <mmiesfeld@apm.com>
---
drivers/usb/Makefile | 1 +
drivers/usb/gadget/Kconfig | 11 +++++++++++
drivers/usb/gadget/gadget_chips.h | 3 +++
3 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/Makefile b/drivers/usb/Makefile
index 30ddf8d..a2daf43 100644
--- a/drivers/usb/Makefile
+++ b/drivers/usb/Makefile
@@ -50,4 +50,5 @@ obj-$(CONFIG_USB_SPEEDTOUCH) += atm/
obj-$(CONFIG_USB_MUSB_HDRC) += musb/
obj-$(CONFIG_USB_RENESAS_USBHS) += renesas_usbhs/
obj-$(CONFIG_USB_OTG_UTILS) += otg/
+obj-$(CONFIG_USB_DWC_OTG) += dwc/
obj-$(CONFIG_USB_GADGET) += gadget/
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 5a084b9..5f1f89f 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -316,6 +316,17 @@ config USB_GADGET_MUSB_HDRC
This OTG-capable silicon IP is used in dual designs including
the TI DaVinci, OMAP 243x, OMAP 343x, TUSB 6010, and ADI Blackfin
+# dwc_otg builds in ../dwc along with host support
+config USB_GADGET_DWC_HDRC
+ boolean "DesignWare USB Peripheral"
+ depends on DWC_OTG_MODE || DWC_DEVICE_ONLY
+ select USB_GADGET_DUALSPEED
+ select USB_GADGET_SELECTED
+ select USB_GADGET_DWC_OTG
+ help
+ This OTG-capable Designware USB IP which has host and device
+ modes.
+
config USB_M66592
tristate "Renesas M66592 USB Peripheral Controller"
select USB_GADGET_DUALSPEED
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h
index f3a83cd..cbf2ce7 100644
--- a/drivers/usb/gadget/gadget_chips.h
+++ b/drivers/usb/gadget/gadget_chips.h
@@ -49,6 +49,7 @@
#define gadget_is_s3c2410(g) (!strcmp("s3c2410_udc", (g)->name))
#define gadget_is_s3c_hsotg(g) (!strcmp("s3c-hsotg", (g)->name))
#define gadget_is_s3c_hsudc(g) (!strcmp("s3c-hsudc", (g)->name))
+#define gadget_is_dwc_otg_pcd(g) (!strcmp("dwc_otg_pcd", (g)->name))
/**
* usb_gadget_controller_number - support bcdDevice id convention
@@ -115,6 +116,8 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
return 0x30;
else if (gadget_is_net2272(gadget))
return 0x31;
+ else if (gadget_is_dwc_otg_pcd(gadget))
+ return 0x32;
return -ENOENT;
}
--
1.6.1.rc3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v14 10/10] USB/ppc4xx:Synopsys DWC OTG driver enable gadget support
2011-10-07 2:31 [PATCH v14 10/10] USB/ppc4xx:Synopsys DWC OTG driver enable gadget support tmarri
@ 2011-10-07 11:07 ` Sergei Shtylyov
2011-10-11 22:43 ` Tirumala Marri
0 siblings, 1 reply; 4+ messages in thread
From: Sergei Shtylyov @ 2011-10-07 11:07 UTC (permalink / raw)
To: tmarri; +Cc: Mark Miesfeld, greg, linux-usb, linuxppc-dev, Fushen Chen
Hello.
On 07-10-2011 6:31, tmarri@apm.com wrote:
> From: Tirumala Marri<tmarri@apm.com>
> Enable gadget support
> Signed-off-by: Tirumala R Marri<tmarri@apm.com>
> Signed-off-by: Fushen Chen<fchen@apm.com>
> Signed-off-by: Mark Miesfeld<mmiesfeld@apm.com>
[...]
> diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
> index 5a084b9..5f1f89f 100644
> --- a/drivers/usb/gadget/Kconfig
> +++ b/drivers/usb/gadget/Kconfig
> @@ -316,6 +316,17 @@ config USB_GADGET_MUSB_HDRC
> This OTG-capable silicon IP is used in dual designs including
> the TI DaVinci, OMAP 243x, OMAP 343x, TUSB 6010, and ADI Blackfin
>
> +# dwc_otg builds in ../dwc along with host support
> +config USB_GADGET_DWC_HDRC
> + boolean "DesignWare USB Peripheral"
> + depends on DWC_OTG_MODE || DWC_DEVICE_ONLY
> + select USB_GADGET_DUALSPEED
> + select USB_GADGET_SELECTED
> + select USB_GADGET_DWC_OTG
I don't see where this one is defined...
WBR, Sergei
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH v14 10/10] USB/ppc4xx:Synopsys DWC OTG driver enable gadget support
2011-10-07 11:07 ` Sergei Shtylyov
@ 2011-10-11 22:43 ` Tirumala Marri
2011-10-12 11:16 ` Sergei Shtylyov
0 siblings, 1 reply; 4+ messages in thread
From: Tirumala Marri @ 2011-10-11 22:43 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: Mark Miesfeld, greg, linux-usb, linuxppc-dev, Fushen Chen
<> +# dwc_otg builds in ../dwc along with host support
<> +config USB_GADGET_DWC_HDRC
<> + boolean "DesignWare USB Peripheral"
<> + depends on DWC_OTG_MODE || DWC_DEVICE_ONLY
<> + select USB_GADGET_DUALSPEED
<> + select USB_GADGET_SELECTED
<> + select USB_GADGET_DWC_OTG
<
< I don't see where this one is defined...
<
[Tirumala Marri] You mean USB_GADGET_SELECTED ? Ok I will add it.
--marri
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v14 10/10] USB/ppc4xx:Synopsys DWC OTG driver enable gadget support
2011-10-11 22:43 ` Tirumala Marri
@ 2011-10-12 11:16 ` Sergei Shtylyov
0 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2011-10-12 11:16 UTC (permalink / raw)
To: Tirumala Marri; +Cc: Mark Miesfeld, greg, linux-usb, linuxppc-dev, Fushen Chen
Hello.
On 12-10-2011 2:43, Tirumala Marri wrote:
> <> +# dwc_otg builds in ../dwc along with host support
> <> +config USB_GADGET_DWC_HDRC
> <> + boolean "DesignWare USB Peripheral"
> <> + depends on DWC_OTG_MODE || DWC_DEVICE_ONLY
> <> + select USB_GADGET_DUALSPEED
> <> + select USB_GADGET_SELECTED
> <> + select USB_GADGET_DWC_OTG
> < I don't see where this one is defined...
> [Tirumala Marri] You mean USB_GADGET_SELECTED ? Ok I will add it.
No, I mean USB_GADGET_DWC_OTG. USB_GADGET_SELECTED is already defined.
> --marri
WBR, Sergei
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-12 11:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-07 2:31 [PATCH v14 10/10] USB/ppc4xx:Synopsys DWC OTG driver enable gadget support tmarri
2011-10-07 11:07 ` Sergei Shtylyov
2011-10-11 22:43 ` Tirumala Marri
2011-10-12 11:16 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).