Re: Creating a new xhci-hcd platform device

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

 



On Mon, Apr 22, 2013 at 11:54 AM, Ben Dooks <bjdooks@xxxxxxxxxxxxxx> wrote:
> If the code is small, then I don't see any problem with adding it directly
> to the xhci-plat.c driver (or in this case you'll probably need an xhci-of
> binding as well)
im not sure it is small. you can look at drivers/dma/mv_xor.c function
"mv_xor_conf_mbus_windows" for an example

>
> I was wondering if the marvell system supports a more generic way of
> attaching devices which have these bus window mappings on them,
> since there's several others. It may be worth looking into this (at least
> ask on the arm kernel list).
i will look into it. i know some work has been done in plat-orion by
thomas petazzoni. maybe there is a generic approach to this
>
> It would probably be best to view the code before making much more
> in the way of comment.
i can send a patch tough the entire machine is still not in mainline

Thanks

Yehuda
>
>
>
>
> On 22 April 2013 09:18, yehuda yitchak <yehuda80@xxxxxxxxx> wrote:
>> Hello everyone
>>
>> I want to ask your advice on the best approach for implementing a new
>> XHCI host controller.
>> I am going to add Linux support for a new XHCI host controller for Marvell SOCs.
>>
>> I looked around the latest XHCI support code in the kernel and found
>> that a platform driver called “xhci-hcd” exists.
>>
>> And there is also one XHCI device (DRD dwc3 used by Samsung and TI)
>> that bounds to this driver.
>>
>> My case is somewhat simpler than the dwc3 since it’s not a Dual Role Device.
>> Basically I need to initialize some SOC level registers and then
>> register an xhci-hcd device. Also I need to implement suspend/resume
>> hooks to save and restore the SOC registers initialized at the probe
>> function.
>>
>> I was thinking to take the following approach:
>>
>> 1.  Under drivers/usb/host - Register a new platform driver called
>> “xhci-mv” which will initialize the SOC specific stuff and register an
>> “xhci-hcd” platform device.
>>
>> 2. In the machine code – Register an “xhci-mv” platform device and
>> initialize its resources based on device tree.
>>
>> I appreciate any input or comment
>>
>> Thanks in advance
>>
>> Yehuda Yitschak
>> --
>> 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
>
>
>
> --
> Ben Dooks, http://www.fluff.org/ben/ bjdooks@xxxxxxxxxxxxxx
--
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