Andy Yan | b5e1630 | 2019-11-14 11:21:12 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * (C) Copyright 2018 Rockchip Electronics Co., Ltd |
| 4 | */ |
| 5 | |
Andy Yan | b5e1630 | 2019-11-14 11:21:12 +0800 | [diff] [blame] | 6 | #include <dm.h> |
| 7 | #include <syscon.h> |
| 8 | #include <asm/arch-rockchip/clock.h> |
| 9 | |
| 10 | static const struct udevice_id rk3308_syscon_ids[] = { |
| 11 | { .compatible = "rockchip,rk3308-grf", .data = ROCKCHIP_SYSCON_GRF }, |
| 12 | { } |
| 13 | }; |
| 14 | |
| 15 | U_BOOT_DRIVER(syscon_rk3308) = { |
| 16 | .name = "rk3308_syscon", |
| 17 | .id = UCLASS_SYSCON, |
| 18 | .of_match = rk3308_syscon_ids, |
Jonas Karlman | cd51318 | 2024-07-24 06:58:15 +0000 | [diff] [blame] | 19 | #if CONFIG_IS_ENABLED(OF_REAL) |
| 20 | .bind = dm_scan_fdt_dev, |
| 21 | #endif |
Andy Yan | b5e1630 | 2019-11-14 11:21:12 +0800 | [diff] [blame] | 22 | }; |