mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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>
This commit is contained in:
parent
2bc00e016e
commit
0b374c8dc8
2 changed files with 22 additions and 1 deletions
|
|
@ -6,5 +6,5 @@
|
|||
|
||||
ifndef CONFIG_SPL_BUILD
|
||||
obj-y += reset_rk3036.o
|
||||
obj-y += syscon_rk3036.o
|
||||
endif
|
||||
|
||||
|
|
|
|||
21
arch/arm/mach-rockchip/rk3036/syscon_rk3036.c
Normal file
21
arch/arm/mach-rockchip/rk3036/syscon_rk3036.c
Normal file
|
|
@ -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,
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue