diff options
author | huang lin <hl@rock-chips.com> | 2015-11-17 09:20:19 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-12-01 18:07:22 +0300 |
commit | 0b374c8dc84586b2280d87ba5856c5f30fc8c319 (patch) | |
tree | aaee7a9603d081d56439d77fb1ab9f2887216ec2 /arch/arm/mach-rockchip/rk3036/syscon_rk3036.c | |
parent | 2bc00e016e4c1440f3004776e26357f46eb6690a (diff) | |
download | u-boot-0b374c8dc84586b2280d87ba5856c5f30fc8c319.tar.xz |
rockchip: rk3036: Add a simple syscon driver
Add a driver that provides access to system controllers
Signed-off-by: Lin Huang <hl@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/mach-rockchip/rk3036/syscon_rk3036.c')
-rw-r--r-- | arch/arm/mach-rockchip/rk3036/syscon_rk3036.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/rk3036/syscon_rk3036.c b/arch/arm/mach-rockchip/rk3036/syscon_rk3036.c new file mode 100644 index 0000000000..965afde4a0 --- /dev/null +++ b/arch/arm/mach-rockchip/rk3036/syscon_rk3036.c @@ -0,0 +1,21 @@ +/* + * (C) Copyright 2015 Rockchip Electronics Co., Ltd + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <common.h> +#include <dm.h> +#include <syscon.h> +#include <asm/arch/clock.h> + +static const struct udevice_id rk3036_syscon_ids[] = { + { .compatible = "rockchip,rk3036-grf", .data = ROCKCHIP_SYSCON_GRF }, + { } +}; + +U_BOOT_DRIVER(syscon_rk3036) = { + .name = "rk3036_syscon", + .id = UCLASS_SYSCON, + .of_match = rk3036_syscon_ids, +}; |