blob: 0d9dca8173cd466af636ad9be3554460fef76d13 [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
6#include <common.h>
7#include <dm.h>
8#include <syscon.h>
Kever Yang9fbe17c2019-03-28 11:01:23 +08009#include <asm/arch-rockchip/clock.h>
Kever Yang57d4dbf2017-06-23 17:17:52 +080010
11static 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
17U_BOOT_DRIVER(syscon_rk322x) = {
18 .name = "rk322x_syscon",
19 .id = UCLASS_SYSCON,
20 .of_match = rk322x_syscon_ids,
21};