Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Kever Yang | ec02b3c | 2017-02-23 15:37:51 +0800 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2016 Rockchip Electronics Co., Ltd |
Kever Yang | ec02b3c | 2017-02-23 15:37:51 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
Kever Yang | 9fbe17c | 2019-03-28 11:01:23 +0800 | [diff] [blame] | 7 | #include <asm/arch-rockchip/clock.h> |
Kever Yang | ec02b3c | 2017-02-23 15:37:51 +0800 | [diff] [blame] | 8 | #include <dm.h> |
| 9 | #include <syscon.h> |
| 10 | |
| 11 | static const struct udevice_id rk3328_syscon_ids[] = { |
| 12 | { .compatible = "rockchip,rk3328-grf", .data = ROCKCHIP_SYSCON_GRF }, |
Kever Yang | e100a6d | 2017-09-06 15:58:25 +0800 | [diff] [blame] | 13 | { } |
Kever Yang | ec02b3c | 2017-02-23 15:37:51 +0800 | [diff] [blame] | 14 | }; |
| 15 | |
Walter Lozano | 2901ac6 | 2020-06-25 01:10:04 -0300 | [diff] [blame] | 16 | U_BOOT_DRIVER(rockchip_rk3328_grf) = { |
| 17 | .name = "rockchip_rk3328_grf", |
Kever Yang | ec02b3c | 2017-02-23 15:37:51 +0800 | [diff] [blame] | 18 | .id = UCLASS_SYSCON, |
| 19 | .of_match = rk3328_syscon_ids, |
| 20 | }; |