blob: 255259eabfdaceca07928014621e7979cfe67652 [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
Joseph Chen72cd8792021-06-02 15:58:25 +08006#include <dm.h>
7#include <syscon.h>
8#include <asm/arch-rockchip/clock.h>
9
10static const struct udevice_id rk3568_syscon_ids[] = {
11 { .compatible = "rockchip,rk3568-grf", .data = ROCKCHIP_SYSCON_GRF },
12 { .compatible = "rockchip,rk3568-pmugrf", .data = ROCKCHIP_SYSCON_PMUGRF },
13 { }
14};
15
16U_BOOT_DRIVER(syscon_rk3568) = {
17 .name = "rk3568_syscon",
18 .id = UCLASS_SYSCON,
19 .of_match = rk3568_syscon_ids,
Simon Glass92882652021-08-07 07:24:04 -060020#if CONFIG_IS_ENABLED(OF_REAL)
Joseph Chen72cd8792021-06-02 15:58:25 +080021 .bind = dm_scan_fdt_dev,
22#endif
23};