[U-Boot] [PATCH v2 01/13] dm: core: Add a function to bind child devices

Simon Glass sjg at chromium.org
Sun Jul 17 22:59:56 CEST 2016


On 5 July 2016 at 17:10, Simon Glass <sjg at chromium.org> wrote:
> We currently use dm_scan_fdt_node() to bind devices. It is an internal
> function and it requires the caller to know whether we are pre- or post-
> relocation.
>
> This requirement has become quite common in drivers, so the current function
> is not ideal.
>
> Add a new function with fewer arguments, that does not require internal
> headers. This can be used directly as a post_bind() method if needed.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2:
> - Add new patch to bring in dm_scan_fdt_dev()
>
>  drivers/core/root.c |  9 +++++++++
>  include/dm/device.h | 16 ++++++++++++++++
>  2 files changed, 25 insertions(+)

Applied to u-boot-dm.


More information about the U-Boot mailing list