blob: 02ed366d8b6fddc0f3f2e16ec6bf977f9922d5de [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Kever Yangec02b3c2017-02-23 15:37:51 +08002/*
3 * (C) Copyright 2016 Rockchip Electronics Co., Ltd
Kever Yangec02b3c2017-02-23 15:37:51 +08004 */
5
Kever Yang9fbe17c2019-03-28 11:01:23 +08006#include <asm/arch-rockchip/clock.h>
Kever Yangec02b3c2017-02-23 15:37:51 +08007#include <dm.h>
8#include <syscon.h>
9
10static const struct udevice_id rk3328_syscon_ids[] = {
11 { .compatible = "rockchip,rk3328-grf", .data = ROCKCHIP_SYSCON_GRF },
Kever Yange100a6d2017-09-06 15:58:25 +080012 { }
Kever Yangec02b3c2017-02-23 15:37:51 +080013};
14
Walter Lozano2901ac62020-06-25 01:10:04 -030015U_BOOT_DRIVER(rockchip_rk3328_grf) = {
16 .name = "rockchip_rk3328_grf",
Kever Yangec02b3c2017-02-23 15:37:51 +080017 .id = UCLASS_SYSCON,
18 .of_match = rk3328_syscon_ids,
Jonas Karlman84677e22024-04-21 20:09:03 +000019#if CONFIG_IS_ENABLED(OF_REAL)
20 .bind = dm_scan_fdt_dev,
21#endif
Kever Yangec02b3c2017-02-23 15:37:51 +080022};