[PATCH] mx27: mxt_td60: Add USB Support

Daniel Mack daniel at caiaq.de
Tue Dec 8 22:00:54 EST 2009


On Mon, Dec 07, 2009 at 09:39:04AM -0200, Alan Carvalho de Assis wrote:
> > On Fri, Dec 04, 2009 at 03:45:19PM -0200, Alan Carvalho de Assis wrote:

> > Ideally, you would make that a more generic driver of its own, which lives
> > in
> > drivers/usb/otg/ and is named something like 'transceiver-gpio'. You would
> > instanciate it by passing a platform data struct to set the gpios you want
> > it
> > to use. This might sound overdone, but it would make your code reusable.
> >
> > The calls to mxc_gpio_mode() would remain in your platform code, of course.
> >
> 
> Ok, I need your support here. I'm using mxc-master and I looked for
> something related to "transceiver gpio", but no success. I found some
> gpio related to usb gadget, but this is not the case. Could you point
> me to right function?

What I was thinking of is a very small kind of driver that is
initialized similar to the ulpi transceiver but instead of taking ULPI
lowevel operations, it is fed with a struct to specify the GPIOs to use.

Daniel



More information about the linux-arm-kernel mailing list