[PATCH 4/9] rockchip: rk3568: Remove unneeded syscon driver

Jonas Karlman <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <[email protected]>
Modern Rockchip device drivers use syscon_regmap_lookup_by_phandle()
to get a regmap or use a constant to get the fixed base address.

Remove the unneeded RK3568 syscon driver to discourage new uses of
syscon_get_regmap_by_driver_data() or syscon_get_first_range().

The generic_syscon driver will instead be used for the compatible
previously matched by the now removed driver.

Signed-off-by: Jonas Karlman <[email protected]>
---
 arch/arm/mach-rockchip/rk3568/Makefile        |  1 -
 arch/arm/mach-rockchip/rk3568/syscon_rk3568.c | 23 -------------------
 2 files changed, 24 deletions(-)
 delete mode 100644 arch/arm/mach-rockchip/rk3568/syscon_rk3568.c

diff --git a/arch/arm/mach-rockchip/rk3568/Makefile b/arch/arm/mach-rockchip/rk3568/Makefile
index 28c1f4ee5c9b..610d2a015587 100644
--- a/arch/arm/mach-rockchip/rk3568/Makefile
+++ b/arch/arm/mach-rockchip/rk3568/Makefile
@@ -6,4 +6,3 @@
 
 obj-y += clk_rk3568.o
 obj-y += rk3568.o
-obj-y += syscon_rk3568.o
diff --git a/arch/arm/mach-rockchip/rk3568/syscon_rk3568.c b/arch/arm/mach-rockchip/rk3568/syscon_rk3568.c
deleted file mode 100644
index 255259eabfda..000000000000
--- a/arch/arm/mach-rockchip/rk3568/syscon_rk3568.c
+++ /dev/null
@@ -1,23 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2021 Rockchip Electronics Co., Ltd
- */
-
-#include <dm.h>
-#include <syscon.h>
-#include <asm/arch-rockchip/clock.h>
-
-static const struct udevice_id rk3568_syscon_ids[] = {
-	{ .compatible = "rockchip,rk3568-grf", .data = ROCKCHIP_SYSCON_GRF },
-	{ .compatible = "rockchip,rk3568-pmugrf", .data = ROCKCHIP_SYSCON_PMUGRF },
-	{ }
-};
-
-U_BOOT_DRIVER(syscon_rk3568) = {
-	.name = "rk3568_syscon",
-	.id = UCLASS_SYSCON,
-	.of_match = rk3568_syscon_ids,
-#if CONFIG_IS_ENABLED(OF_REAL)
-	.bind = dm_scan_fdt_dev,
-#endif
-};
-- 
2.54.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.