1 /*
2  * (C) Copyright 2017 Rockchip Electronics Co., Ltd
3  * Author: Andy Yan <andy.yan@rock-chips.com>
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 #include <common.h>
8 #include <dm.h>
9 #include <syscon.h>
10 #include <asm/arch/clock.h>
11 
12 static const struct udevice_id rk3368_syscon_ids[] = {
13 	{ .compatible = "rockchip,rk3368-grf",
14 	  .data = ROCKCHIP_SYSCON_GRF },
15 	{ .compatible = "rockchip,rk3368-pmugrf",
16 	  .data = ROCKCHIP_SYSCON_PMUGRF },
17 	{ }
18 };
19 
20 U_BOOT_DRIVER(syscon_rk3368) = {
21 	.name = "rk3368_syscon",
22 	.id = UCLASS_SYSCON,
23 	.of_match = rk3368_syscon_ids,
24 };
25