1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2017 Rockchip Electronics Co., Ltd
4  */
5 
6 #include <common.h>
7 #include <dm.h>
8 #include <syscon.h>
9 #include <asm/arch/clock.h>
10 
11 static const struct udevice_id rk322x_syscon_ids[] = {
12 	{ .compatible = "rockchip,rk3228-grf", .data = ROCKCHIP_SYSCON_GRF },
13 	{ .compatible = "rockchip,rk3228-msch", .data = ROCKCHIP_SYSCON_MSCH },
14 	{ }
15 };
16 
17 U_BOOT_DRIVER(syscon_rk322x) = {
18 	.name = "rk322x_syscon",
19 	.id = UCLASS_SYSCON,
20 	.of_match = rk322x_syscon_ids,
21 };
22