diff options
author | Andreas Dannenberg <dannenberg@ti.com> | 2018-08-27 15:57:38 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-09-11 08:32:55 -0400 |
commit | aec99c9776d33a1c2218f975a02cb1068cdcf579 (patch) | |
tree | dd8c2fdbd55d6bf94a1cd50682ad259bad857251 | |
parent | ccbc8b2fddc59f9ec5f487b704195227e4360c29 (diff) | |
download | u-boot-aec99c9776d33a1c2218f975a02cb1068cdcf579.tar.gz u-boot-aec99c9776d33a1c2218f975a02cb1068cdcf579.tar.bz2 u-boot-aec99c9776d33a1c2218f975a02cb1068cdcf579.zip |
dm: firmware: Automatically bind child devices
To support scenarios where a firmware device node has subnodes that
have their own drivers automatically scan the DT and bind those when
the firmware device gets bound.
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
-rw-r--r-- | drivers/firmware/firmware-uclass.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firmware/firmware-uclass.c b/drivers/firmware/firmware-uclass.c index d09923595b..3d33b6deba 100644 --- a/drivers/firmware/firmware-uclass.c +++ b/drivers/firmware/firmware-uclass.c @@ -7,4 +7,7 @@ UCLASS_DRIVER(firmware) = { .id = UCLASS_FIRMWARE, .name = "firmware", +#if CONFIG_IS_ENABLED(OF_CONTROL) + .post_bind = dm_scan_fdt_dev, +#endif }; |