svn commit: r328402 - head/sys/dev/usb/controller
Emmanuel Vadot
manu at bidouilliste.com
Fri Jan 26 10:14:20 UTC 2018
On Thu, 25 Jan 2018 17:14:52 +0000
Ruslan Bukin <ruslan.bukin at cl.cam.ac.uk> wrote:
> On Thu, Jan 25, 2018 at 06:12:04PM +0100, Emmanuel Vadot wrote:
> > > Log:
> > > Add basic driver for Qualcomm USB 2.0 EHCI controller.
> > > This driver relies on system initialization in u-boot.
> > >
> > > Tested on DragonBoard 410c.
> > >
> > > Sponsored by: DARPA, AFRL
> > >
> > > Added:
> > > head/sys/dev/usb/controller/ehci_msm.c (contents, props changed)
> > >
> >
> > The code looks like the generic-ehci, would it be better to subclass
> > generic-ehci to fdt and add qualcomm quirks if necessary ?
> >
>
> Hi Emmanuel
>
> This driver is incomplete currently and requires initialization in u-boot.
>
> Both system clocks and EHCI subsystem, also Qualcomm power management device requires full initialization.
> My goal will be to extend this driver and proceed full initialization required for Qualcomm EHCI.
Yes I can see that all the clock/reset/phy management is not yet done.
But the generic-ehci driver should be subclassed so you can re-use the
ehdi generic code in your driver. Then you will just need the attach
function to deal the clock/reset/phy.
> The u-boot option CONFIG_DM_DEVICE_REMOVE=n must be added in order to keep devices initialized before jumping to FreeBSD. We will need to get rid of these by adding some code to this driver I guess.
>
> Thanks.
>
> Ruslan
--
Emmanuel Vadot <manu at bidouilliste.com> <manu at freebsd.org>
More information about the svn-src-all
mailing list