blob: 20adfd11690fc68bb45c07b776d5bc6c50628c9d [file] [log] [blame]
Joseph Chen72cd8792021-06-02 15:58:25 +08001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * (C) Copyright 2021 Rockchip Electronics Co., Ltd
4 */
5
6#include <common.h>
7#include <dm.h>
8#include <syscon.h>
9#include <asm/arch-rockchip/clock.h>
10
11static const struct udevice_id rk3568_syscon_ids[] = {
12 { .compatible = "rockchip,rk3568-grf", .data = ROCKCHIP_SYSCON_GRF },
13 { .compatible = "rockchip,rk3568-pmugrf", .data = ROCKCHIP_SYSCON_PMUGRF },
14 { }
15};
16
17U_BOOT_DRIVER(syscon_rk3568) = {
18 .name = "rk3568_syscon",
19 .id = UCLASS_SYSCON,
20 .of_match = rk3568_syscon_ids,
21#if !CONFIG_IS_ENABLED(OF_PLATDATA)
22 .bind = dm_scan_fdt_dev,
23#endif
24};