diff options
Diffstat (limited to 'roms/u-boot/arch/arm/mach-rockchip/rk322x/syscon_rk322x.c')
-rw-r--r-- | roms/u-boot/arch/arm/mach-rockchip/rk322x/syscon_rk322x.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/roms/u-boot/arch/arm/mach-rockchip/rk322x/syscon_rk322x.c b/roms/u-boot/arch/arm/mach-rockchip/rk322x/syscon_rk322x.c new file mode 100644 index 000000000..0d9dca817 --- /dev/null +++ b/roms/u-boot/arch/arm/mach-rockchip/rk322x/syscon_rk322x.c @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2017 Rockchip Electronics Co., Ltd + */ + +#include <common.h> +#include <dm.h> +#include <syscon.h> +#include <asm/arch-rockchip/clock.h> + +static const struct udevice_id rk322x_syscon_ids[] = { + { .compatible = "rockchip,rk3228-grf", .data = ROCKCHIP_SYSCON_GRF }, + { .compatible = "rockchip,rk3228-msch", .data = ROCKCHIP_SYSCON_MSCH }, + { } +}; + +U_BOOT_DRIVER(syscon_rk322x) = { + .name = "rk322x_syscon", + .id = UCLASS_SYSCON, + .of_match = rk322x_syscon_ids, +}; |