summaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip/rk322x/syscon_rk322x.c
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2017-06-23 17:17:52 +0800
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-07-11 12:13:46 +0200
commit168eef7ada98c6bff53458013e42cdbc5adb3cd4 (patch)
treeb1172b103a24b290219d9f5e65076c9f07346c08 /arch/arm/mach-rockchip/rk322x/syscon_rk322x.c
parentb647442ce8a3c191677155ff29ca0c41dc8c6d0c (diff)
rockchip: rk322x: add basic soc support
Enable soc support for SPL and U-boot skeleton. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'arch/arm/mach-rockchip/rk322x/syscon_rk322x.c')
-rw-r--r--arch/arm/mach-rockchip/rk322x/syscon_rk322x.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/rk322x/syscon_rk322x.c b/arch/arm/mach-rockchip/rk322x/syscon_rk322x.c
new file mode 100644
index 0000000000..1b11b8cbeb
--- /dev/null
+++ b/arch/arm/mach-rockchip/rk322x/syscon_rk322x.c
@@ -0,0 +1,22 @@
+/*
+ * (C) Copyright 2017 Rockchip Electronics Co., Ltd
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <common.h>
+#include <dm.h>
+#include <syscon.h>
+#include <asm/arch/clock.h>
+
+static const struct udevice_id rk322x_syscon_ids[] = {
+ { .compatible = "rockchip,rk3228-grf", .data = ROCKCHIP_SYSCON_GRF },
+ { .compatible = "rockchip,rk3228-msch", .data = ROCKCHIP_SYSCON_MSCH },
+ { }
+};
+
+U_BOOT_DRIVER(syscon_rk322x) = {
+ .name = "rk322x_syscon",
+ .id = UCLASS_SYSCON,
+ .of_match = rk322x_syscon_ids,
+};