[PATCH v1 02/12] arch: rockchip: rv1126: Update syscon driver binding method

Anand Moon linux.amoon at gmail.com
Tue Aug 6 06:38:39 CEST 2024


Updated the binding method to use `dm_scan_fdt_dev` when
`OF_REAL` is enabled.

Signed-off-by: Anand Moon <linux.amoon at gmail.com>
---
 arch/arm/mach-rockchip/rv1126/syscon_rv1126.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c b/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c
index 67d2f18a8d0..d66d84c836d 100644
--- a/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c
+++ b/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c
@@ -18,6 +18,9 @@ static const struct udevice_id rv1126_syscon_ids[] = {
 U_BOOT_DRIVER(syscon_rv1126) = {
 	.name = "rv1126_syscon",
 	.id = UCLASS_SYSCON,
+#if CONFIG_IS_ENABLED(OF_REAL)
+	.bind = dm_scan_fdt_dev,
+#endif
 	.of_match = rv1126_syscon_ids,
 };
 
-- 
2.46.0



More information about the U-Boot mailing list