]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-rockchip: bind sub-nodes for rk3399_syscon
authorFrank Wang <frank.wang@rock-chips.com>
Tue, 26 May 2020 03:32:08 +0000 (11:32 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 29 May 2020 10:13:19 +0000 (18:13 +0800)
There are some sub-nodes under the grf DT, so add bind callback
function in rk3399 syscon driver to scan them recursively.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> # roc-rk3399-pc
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/rk3399/syscon_rk3399.c

index 6b02dc8beb20a4024161d257bec4f8b68519c6d7..690cbe7f27892944e5cf25ccd40c5c9b80b1e32c 100644 (file)
@@ -21,6 +21,9 @@ static const struct udevice_id rk3399_syscon_ids[] = {
 U_BOOT_DRIVER(syscon_rk3399) = {
        .name = "rk3399_syscon",
        .id = UCLASS_SYSCON,
+#if !CONFIG_IS_ENABLED(OF_PLATDATA)
+       .bind = dm_scan_fdt_dev,
+#endif
        .of_match = rk3399_syscon_ids,
 };