[U-Boot] [PATCH 10/13] at91: move usb driver to drivers/usb

Michael Trimarchi
2009-04-01T08:59:08Z

Hi,

Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 09:57 Wed 01 Apr , Remy Bohmer wrote:
>
>> Hello Jean-Christophe,
>>
>>
>>>> And that is exactly the issue here. The discussion is about moving
>>>> 'platform USB init code' to generic driver code.
>>>> I would have no problems with moving real USB drivers to the generic
>>>> driver section, if they are cleaned from board specific code, of
>>>> course.
>>>>
>>> in our case it's not a cpu specify init but an IP init which is share to
>>> multiple soc for multiple arch
>>>
>> IMHO, that still does not justify it to make it part of the generic drivers.
>> And I already mentioned yesterday, that I agree that it does not
>> really belong in the cpu section as well.
>> We should not pollute one area by cleaning another area.
>>
>> So, we seem to be lacking a SoC/board specific section, like the linux
>> kernel handles it.
>>
> btw in linux the similar usb code is here
> drivers/usb/host/ohci-at91.c
>
> Best Regards,
> J.
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
>

It is just a glue code in linux. Maybe it will be simple if you create a
core direcory
and a host directory under the usb. An move the specific part in the host.

Michael