summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorChristopher Zimmermann <chrisz@cvs.openbsd.org>2021-12-13 20:59:24 +0000
committerChristopher Zimmermann <chrisz@cvs.openbsd.org>2021-12-13 20:59:24 +0000
commit99cdb66745ad61a15523e589eb72eeca0ccf5ec8 (patch)
tree856fc7f0e728706c5ad55d66e62ff085f068d6fe /sys/dev
parent32242f7624aa1fa235dfa1c6531492bd77a306a5 (diff)
add pclk clock used by dwdog(4) on RK3399
ok kettenis@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/fdt/rkclock.c7
-rw-r--r--sys/dev/fdt/rkclock_clocks.h1
2 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/fdt/rkclock.c b/sys/dev/fdt/rkclock.c
index 2066722c355..5f341259b11 100644
--- a/sys/dev/fdt/rkclock.c
+++ b/sys/dev/fdt/rkclock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rkclock.c,v 1.59 2021/10/24 17:52:26 mpi Exp $ */
+/* $OpenBSD: rkclock.c,v 1.60 2021/12/13 20:59:23 chrisz Exp $ */
/*
* Copyright (c) 2017, 2018 Mark Kettenis <kettenis@openbsd.org>
*
@@ -2303,6 +2303,11 @@ struct rkclock rk3399_clocks[] = {
{ RK3399_PLL_CPLL, RK3399_PLL_GPLL }
},
{
+ RK3399_PCLK_WDT, RK3399_CRU_CLKSEL_CON(57),
+ 0, DIV(4, 0),
+ { RK3399_PLL_GPLL }
+ },
+ {
RK3399_HCLK_PERIPH, RK3399_CRU_CLKSEL_CON(14),
0, DIV(9, 8),
{ RK3399_ACLK_PERIPH }
diff --git a/sys/dev/fdt/rkclock_clocks.h b/sys/dev/fdt/rkclock_clocks.h
index e8d99435c2d..9884938be14 100644
--- a/sys/dev/fdt/rkclock_clocks.h
+++ b/sys/dev/fdt/rkclock_clocks.h
@@ -233,6 +233,7 @@
#define RK3399_PCLK_TSADC 356
#define RK3399_PCLK_GMAC 358
#define RK3399_PCLK_DDR 376
+#define RK3399_PCLK_WDT 380
#define RK3399_HCLK_PERIPH 448
#define RK3399_HCLK_PERILP0 449