Re: [PATCH] ARM: OMAP: Fix board data to support device only, host only and OTG roles.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 20, 2010 at 8:48 AM, David Brownell <david-b@xxxxxxxxxxx> wrote:
>
>> +#ifdef CONFIG_USB_MUSB_OTG
>> +    .mode
>>         = MUSB_OTG,
>> +#elif defined(CONFIG_USB_MUSB_HDRC_HCD)
>> +    .mode
>>         = MUSB_HOST,
>> +#elif defined(CONFIG_USB_GADGET_MUSB_HDRC)
>>      .mode
>>         = MUSB_PERIPHERAL,
>> +#endif
>
>>         = MUSB_PERIPHERAL,
>> +#endif
>
> By the way ... the #ifdeffery should indeed vanish from all board
> configs except the Davinci DM6446 EVM.  That board is kind of quirky
> in terms of USB support, and needs jumpering to get host or peripheral
> mode (and can't do OTG).  I suspect some of the other boards did a bad
> thing and tried emulating what that board did.

For Overo this patch actually makes quite a bit of sense (and I have
been using something similar for quite some time).

The Overo COM itself has no USB connector -- the customer can choose
or create a daughter card with the type of USB connector appropriate
to their application, be it host, peripheral, or OTG.  Having the mode
easily settable via a config option allows them to use the standard
board file without modification.

Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux