Re: [U-Boot] [RFC PATCH 16/22] dm: Add a way to indicate a preferred device within a uclass

2014-05-30 Thread Simon Glass
Hi Jon, On 27 May 2014 09:42, Jon Loeliger wrote: >> The preferred device can be specified with a DM_FLAG_PREFER flag or a >> 'dm,prefer' property in the device tree node. >> >> It is possible that a better approach will come to light in the future, but >> this gets around the problem as it curre

Re: [U-Boot] [RFC PATCH 16/22] dm: Add a way to indicate a preferred device within a uclass

2014-05-27 Thread Jon Loeliger
> The preferred device can be specified with a DM_FLAG_PREFER flag or a > 'dm,prefer' property in the device tree node. > > It is possible that a better approach will come to light in the future, but > this gets around the problem as it currently stands. Here's your clue that something isn't quite

[U-Boot] [RFC PATCH 16/22] dm: Add a way to indicate a preferred device within a uclass

2014-05-24 Thread Simon Glass
Where there are serveral device options that can be chosen, often one is preferred. This can normally be handled by aliases in the device tree. However, when a device can be specified either with platform data or with a device tree node, which one should dm use? This situation happens with sandbox