mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-23 10:28:51 +09:00
![huang lin](/assets/img/avatar_default.png)
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>
22 lines
440 B
C
22 lines
440 B
C
/*
|
|
* (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,
|
|
};
|