2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2017-06-23 09:17:52 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <dm.h>
|
|
|
|
#include <syscon.h>
|
2019-03-28 03:01:23 +00:00
|
|
|
#include <asm/arch-rockchip/clock.h>
|
2017-06-23 09:17:52 +00:00
|
|
|
|
|
|
|
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,
|
|
|
|
};
|