[U-Boot] [PATCH v3 15/54] dm: core: Add a function to find any device from device tree

Simon Glass sjg at chromium.org
Sat Jul 18 01:56:40 CEST 2015


On 23 June 2015 at 15:38, Simon Glass <sjg at chromium.org> wrote:
> In some rare cases it is useful to be able to locate a device given a device
> tree node offset. An example is when you have an alias that points to a node
> and you want to find the associated device. The device may be SPI, MMC or
> something else, but you don't need to know the uclass to find it.
>
> Add a function to do a global search for a device, given its device tree
> offset.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  drivers/core/device.c | 25 +++++++++++++++++++++++++
>  include/dm/device.h   | 14 ++++++++++++++
>  2 files changed, 39 insertions(+)

Applied to u-boot-dm.


More information about the U-Boot mailing list