blob: 5407e7827f5234fa999106199ea9dc91ca5e3a06 [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,
Simon Glass92882652021-08-07 07:24:04 -060021#if CONFIG_IS_ENABLED(OF_REAL)
Joseph Chen72cd8792021-06-02 15:58:25 +080022 .bind = dm_scan_fdt_dev,
23#endif
24};