Skip to content
Commit e41651ff authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent 67507e4a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment