add pclk clock used by dwdog(4) on RK3399
authorchrisz <chrisz@openbsd.org>
Mon, 13 Dec 2021 20:59:23 +0000 (20:59 +0000)
committerchrisz <chrisz@openbsd.org>
Mon, 13 Dec 2021 20:59:23 +0000 (20:59 +0000)
ok kettenis@

sys/dev/fdt/rkclock.c
sys/dev/fdt/rkclock_clocks.h

index 2066722..5f34125 100644 (file)
@@ -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>
  *
@@ -2302,6 +2302,11 @@ struct rkclock rk3399_clocks[] = {
                SEL(15, 15), DIV(12, 8),
                { 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),
index e8d9943..9884938 100644 (file)
 #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