aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip/rk322x/syscon_rk322x.c
blob: 1b11b8cbebc66e319b9eaac7b03ed35fba26d709 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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,
};