From: patrick Date: Fri, 7 Jul 2023 16:53:39 +0000 (+0000) Subject: Add clocks for the RK3588 PWM controllers. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=402c60e696b5eb1ad51916bcdd4362a50445da7a;p=openbsd Add clocks for the RK3588 PWM controllers. ok kettenis@ --- diff --git a/sys/dev/fdt/rkclock.c b/sys/dev/fdt/rkclock.c index b72d85e7263..cbe3a9c3ee6 100644 --- a/sys/dev/fdt/rkclock.c +++ b/sys/dev/fdt/rkclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkclock.c,v 1.79 2023/07/07 16:52:57 patrick Exp $ */ +/* $OpenBSD: rkclock.c,v 1.80 2023/07/07 16:53:39 patrick Exp $ */ /* * Copyright (c) 2017, 2018 Mark Kettenis * @@ -4148,6 +4148,12 @@ const struct rkclock rk3588_clocks[] = { { RK3588_CLK_PMU1_400M_SRC, RK3588_CLK_PMU1_200M_SRC, RK3588_CLK_PMU1_100M_SRC, RK3588_XIN24M } }, + { + RK3588_CLK_PMU1PWM, RK3588_PMUCRU_CLKSEL_CON(2), + SEL(10, 9), 0, + { RK3588_CLK_PMU1_100M_SRC, RK3588_CLK_PMU1_50M_SRC, + RK3588_XIN24M } + }, { RK3588_CLK_UART0_SRC, RK3588_PMUCRU_CLKSEL_CON(3), 0, DIV(11, 7), diff --git a/sys/dev/fdt/rkclock_clocks.h b/sys/dev/fdt/rkclock_clocks.h index 000c72296e8..f4b77278b74 100644 --- a/sys/dev/fdt/rkclock_clocks.h +++ b/sys/dev/fdt/rkclock_clocks.h @@ -465,6 +465,7 @@ #define RK3588_PCLK_PMU1_ROOT 645 #define RK3588_PCLK_PMU0_ROOT 646 #define RK3588_HCLK_PMU_CM0_ROOT 647 +#define RK3588_CLK_PMU1PWM 658 #define RK3588_CLK_UART0_SRC 664 #define RK3588_CLK_UART0_FRAC 665 #define RK3588_CLK_UART0 666