2 * (C) Copyright 2015 Rockchip Electronics Co., Ltd
3 * Author: Andy Yan <andy.yan@rock-chips.com>
4 * SPDX-License-Identifier: GPL-2.0+
12 #include <asm/arch/clock.h>
13 #include <asm/arch/cru_rv1108.h>
14 #include <asm/arch/hardware.h>
15 #include <linux/err.h>
17 int rv1108_sysreset_request(struct udevice
*dev
, enum sysreset_t type
)
19 struct rv1108_cru
*cru
= rockchip_get_cru();
26 writel(0xeca8, &cru
->glb_srst_snd_val
);
29 writel(0xfdb9, &cru
->glb_srst_fst_val
);
32 return -EPROTONOSUPPORT
;
38 static struct sysreset_ops rv1108_sysreset
= {
39 .request
= rv1108_sysreset_request
,
42 U_BOOT_DRIVER(sysreset_rv1108
) = {
43 .name
= "rv1108_sysreset",
44 .id
= UCLASS_SYSRESET
,
45 .ops
= &rv1108_sysreset
,