[PATCH 1/2] DM_USB: allow building without OF_CONTROL

Marek Vasut marex at denx.de
Sat Jun 19 04:23:29 CEST 2021


On 6/18/21 6:38 PM, Tom Rini wrote:
> +Marek
> 
> On Fri, Jun 18, 2021 at 04:57:23PM +0200, Pali Rohár wrote:
> 
>> From: Ivaylo Dimitrov <ivo.g.dimitrov.75 at gmail.com>
>>
>> Currently DM_USB requires OF_CONTROL to be enabled, otherwise link errors
>> occur. On the other hand OF_CONTROL requires board code to be migrated to
>> DT, which is not always possible or required.
>>
>> Fix that by conditionally compiling OF_CONTROL specific sections in USB
>> related drivers code in the same way like it is done in the other drivers.
>> Also, auto select OF_LIBFDT if DM_USB is selected but OF_CONTROL is not.
>> Introduce a new Kconfig option OF_NODE used to compile of_node.c in case
>> OF_CONTROL is not enabled. Fix deprecation warning condition as well.

So, what is the use case of this? Why not just enable DM_USB and 
OF_CONTROL ?


More information about the U-Boot mailing list