]> git.baikalelectronics.ru Git - uboot.git/commit
dm: Support parent devices with of-platdata
authorSimon Glass <sjg@chromium.org>
Sat, 3 Oct 2020 17:31:35 +0000 (11:31 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:18 +0000 (14:42 -0600)
commitc8db58f4d35a4172ff6229466f52830e09748486
treef1c44b812fcbbec53555b8c0ad66edf5ccdaa8d3
parente56042c1afe60a33d9037f49576139488fc7f114
dm: Support parent devices with of-platdata

At present of-platdata does not provide parent information. But this is
useful for I2C devices, for example, since it allows them to determine
which bus they are on.

Add support for setting the parent correctly, by storing the parent
driver_info index in dtoc and reading this in lists_bind_drivers(). This
needs multiple passes since we must process children after their parents
already have been bound.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/lists.c
dts/Kconfig
include/dm/platdata.h
tools/dtoc/dtb_platdata.py
tools/dtoc/test_dtoc.py