Joseph Chen | 72cd879 | 2021-06-02 15:58:25 +0800 | [diff] [blame] | 1 | // 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 | |
| 11 | static 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 | |
| 17 | U_BOOT_DRIVER(syscon_rk3568) = { |
| 18 | .name = "rk3568_syscon", |
| 19 | .id = UCLASS_SYSCON, |
| 20 | .of_match = rk3568_syscon_ids, |
Simon Glass | 9288265 | 2021-08-07 07:24:04 -0600 | [diff] [blame^] | 21 | #if CONFIG_IS_ENABLED(OF_REAL) |
Joseph Chen | 72cd879 | 2021-06-02 15:58:25 +0800 | [diff] [blame] | 22 | .bind = dm_scan_fdt_dev, |
| 23 | #endif |
| 24 | }; |