Hello,

I pulled linux-next, but still can't figure out where to add my udc.
Can you please explain when fsl-udc is loaded?
Thanks a lot.

Greetings
Sebastian Priebe





==========================================
CADCON
Ingenieurgesellschaft mbH & Co. KG
Geschaeftsfuehrer: Robert Bauer, Andreas Gundel
Sitz der Gesellschaft: D-86368 Gersthofen
Registergericht: Amtsgericht Augsburg HRA 14521
==========================================

-----Ursprüngliche Nachricht-----
Von: Fabio Estevam [mailto:[email protected]]
Gesendet: Dienstag, 5. August 2014 14:21
An: Priebe, Sebastian
Cc: [email protected]
Betreff: Re: where to add imx-udc-mx27 in device tree

On Tue, Aug 5, 2014 at 9:06 AM, Priebe, Sebastian <[email protected]> 
wrote:
> Hello,
>
> I am trying to add an USB gadget to my device tree and I am using modules for 
> my gadgets (serial and mass-storage).
> &usbotg {
>         pinctrl-names = "default";
>         pinctrl-0 = <&pinctrl_usbotg>;
>         dr_mode = "peripheral";
>         phy_type = "utmi_wide";
>         status = "okay";
> };

Take a look at arch/arm/boot/dts/imx27-eukrea-cpuimx27.dtsi for an example.

The udc driver is CONFIG_USB_CHIPIDEA_UDC=y.

There is also the commit below in linux-next (not in 3.16) that select the 
gadget driver for imx_v4_v5_defconfig.

Author: Fabio Estevam <[email protected]>
Date:   Wed Jun 25 17:28:53 2014 -0300

    ARM: imx_v4_v5_defconfig: Add USB device options

    Allow USB device to work by default.

    Signed-off-by: Fabio Estevam <[email protected]>
    Signed-off-by: Shawn Guo <[email protected]>

diff --git a/arch/arm/configs/imx_v4_v5_defconfig 
b/arch/arm/configs/imx_v4_v5_d index 68abce9..090de01 100644
--- a/arch/arm/configs/imx_v4_v5_defconfig
+++ b/arch/arm/configs/imx_v4_v5_defconfig
@@ -159,6 +159,8 @@ CONFIG_USB_CHIPIDEA=y  CONFIG_USB_CHIPIDEA_UDC=y  
CONFIG_USB_CHIPIDEA_HOST=y  CONFIG_NOP_USB_XCEIV=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_ETH=m
 CONFIG_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_PLTFM=y

Reply via email to