Thread (4 messages) flat view 4 messages, 2 authors, 2009-12-09
STALE6096d

[PATCH] mx27: mxt_td60: Add USB Support

From: Alan Carvalho de Assis <hidden>
Date: 2009-12-07 11:39:04

Hi Daniel,

On 12/4/09, Daniel Mack [off-list ref] wrote:
On Fri, Dec 04, 2009 at 03:45:19PM -0200, Alan Carvalho de Assis wrote:
quoted
This patch add USB support on i-MXT TD60 to Host1 and Host2 ports.

Signed-off-by: Alan Carvalho de Assis <redacted>
---
 arch/arm/mach-mx2/Kconfig                   |    1 +
 arch/arm/mach-mx2/mxt_td60.c                |  106
+++++++++++++++++++++++++++
 arch/arm/plat-mxc/include/mach/iomux-mx27.h |   14 ++++
Changes to iomux-mx27.h should go in an extra patch, I think.
Yes, I agree.
[...]
quoted
+static int isp1105_init(struct otg_transceiver *otg)
+{
+	mxc_gpio_mode(GPIO_PORTB | 23 | GPIO_GPIO | GPIO_OUT);
+	gpio_set_value(GPIO_PORTB + 23, 1);
+	mxc_gpio_mode(GPIO_PORTC | 31 | GPIO_GPIO | GPIO_OUT);
+	gpio_set_value(GPIO_PORTC + 31, 1);
+	return 0;
+}
gpio_request() is needed here.
Sure, I missed it.
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?

Thank you very much,

Alan
Daniel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help