]> git.baikalelectronics.ru Git - uboot.git/commit
dtoc: extend dtoc to use struct driver_info when linking nodes
authorWalter Lozano <walter.lozano@collabora.com>
Thu, 25 Jun 2020 04:10:13 +0000 (01:10 -0300)
committerSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 04:00:29 +0000 (22:00 -0600)
commit58b97648a8991a982e39fa19973677a53faaaae0
treeec59f38d7e8ccd3c12cc910a78f60feab2ba5d1f
parent36a6a0f0e1857acba8a7b3a5fc77896f2bb0a5c1
dtoc: extend dtoc to use struct driver_info when linking nodes

In the current implementation, when dtoc parses a dtb to generate a struct
platdata it converts the information related to linked nodes as pointers
to struct platdata of destination nodes. By doing this, it makes
difficult to get pointer to udevices created based on these
information.

This patch extends dtoc to use struct driver_info when populating
information about linked nodes, which makes it easier to later get
the devices created. In this context, reimplement functions like
clk_get_by_index_platdata() which made use of the previous approach.

Signed-off-by: Walter Lozano <walter.lozano@collabora.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/clk/clk-uclass.c
drivers/misc/irq-uclass.c
drivers/mmc/ftsdc010_mci.c
drivers/mmc/rockchip_dw_mmc.c
drivers/mmc/rockchip_sdhci.c
drivers/ram/rockchip/sdram_rk3399.c
drivers/spi/rk_spi.c
include/clk.h
tools/dtoc/dtb_platdata.py
tools/dtoc/test_dtoc.py