blob: c471a4c9fb74e8522f6c789a908a13e6f65a8f6c [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Kever Yang57d4dbf2017-06-23 17:17:52 +08002/*
3 * (C) Copyright 2017 Rockchip Electronics Co., Ltd
Kever Yang57d4dbf2017-06-23 17:17:52 +08004 */
5
Kever Yang57d4dbf2017-06-23 17:17:52 +08006#include <dm.h>
7#include <syscon.h>
Kever Yang9fbe17c2019-03-28 11:01:23 +08008#include <asm/arch-rockchip/clock.h>
Kever Yang57d4dbf2017-06-23 17:17:52 +08009
10static const struct udevice_id rk322x_syscon_ids[] = {
11 { .compatible = "rockchip,rk3228-grf", .data = ROCKCHIP_SYSCON_GRF },
12 { .compatible = "rockchip,rk3228-msch", .data = ROCKCHIP_SYSCON_MSCH },
13 { }
14};
15
16U_BOOT_DRIVER(syscon_rk322x) = {
17 .name = "rk322x_syscon",
18 .id = UCLASS_SYSCON,
19 .of_match = rk322x_syscon_ids,
20};