blob: e77189eef6cf806bd8aac321a800dbecfb651da2 [file] [log] [blame]
Andy Yanb5e16302019-11-14 11:21:12 +08001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * (C) Copyright 2018 Rockchip Electronics Co., Ltd
4 */
5
Andy Yanb5e16302019-11-14 11:21:12 +08006#include <dm.h>
7#include <syscon.h>
8#include <asm/arch-rockchip/clock.h>
9
10static const struct udevice_id rk3308_syscon_ids[] = {
11 { .compatible = "rockchip,rk3308-grf", .data = ROCKCHIP_SYSCON_GRF },
12 { }
13};
14
15U_BOOT_DRIVER(syscon_rk3308) = {
16 .name = "rk3308_syscon",
17 .id = UCLASS_SYSCON,
18 .of_match = rk3308_syscon_ids,
Jonas Karlmancd513182024-07-24 06:58:15 +000019#if CONFIG_IS_ENABLED(OF_REAL)
20 .bind = dm_scan_fdt_dev,
21#endif
Andy Yanb5e16302019-11-14 11:21:12 +080022};