lkml.org 
[lkml]   [2011]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/5 v13] arm: omap: usb: ehci and ohci hwmod structures for omap4
Hi

On Mon, 10 Oct 2011, Paul Walmsley wrote:

> So then you'd just create a TLL driver with something like these two
> symbols exported:
>
> omap_usbhost_tll_enable_port();
> omap_usbhost_tll_disable_port();

N.B., since I don't think Linux has any formal support to map USB ports to
TLL ports, you'll probably need to create a couple of functions in your
drivers/mfd/omap-usb-host.c that your EHCI/OHCI drivers could call during
init/exit to get and put the TLL struct device, to pass to those above
functions. Since the MFD driver is what creates the TLL struct devices,
the MFD driver will have the TLL struct device pointers. Something like
omap_usbhost_get_tll_device() and omap_usbhost_put_tll_device().

One other thing. Not sure what the correct generic name prefix for these
functions should be, since I don't know the provenance of the USBHOST IP
block; but maybe the function prefix should be something like 'ti_usbhost'
instead, to indicate that it isn't OMAP-specific? You would know better
than I.


- Paul


\
 
 \ /
  Last update: 2011-10-11 00:15    [W:0.050 / U:1.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site