summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorFrank Wang <frank.wang@rock-chips.com>2020-05-26 11:32:08 +0800
committerKever Yang <kever.yang@rock-chips.com>2020-05-29 18:13:19 +0800
commitc28ef1bcc84f5b2e4e8939431f31728643498652 (patch)
treed8a81201bab235b1d86326ae703d7d3e022e2afe /arch
parente1b413d1a9c8b733603ec3249715597a90a43b9d (diff)
downloadu-boot-c28ef1bcc84f5b2e4e8939431f31728643498652.tar.gz
u-boot-c28ef1bcc84f5b2e4e8939431f31728643498652.tar.xz
u-boot-c28ef1bcc84f5b2e4e8939431f31728643498652.zip
arm: mach-rockchip: bind sub-nodes for rk3399_syscon
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-rockchip/rk3399/syscon_rk3399.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c b/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c
index 6b02dc8beb..690cbe7f27 100644
--- a/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c
+++ b/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c
@@ -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,
};