From: chrisz Date: Mon, 13 Dec 2021 20:59:23 +0000 (+0000) Subject: add pclk clock used by dwdog(4) on RK3399 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=43d1b45e23158947707165d7aced851faae06731;p=openbsd add pclk clock used by dwdog(4) on RK3399 ok kettenis@ --- 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 * @@ -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), 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