diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2023-07-07 16:53:40 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2023-07-07 16:53:40 +0000 |
commit | 879d58079635062f1ba14469138157caa4869e61 (patch) | |
tree | 796bcef4d92a1a52473f51a1e2287410894543e3 /sys | |
parent | 3c468d6f7ffebdf35e8ca2042e5bed41147497e4 (diff) |
Add clocks for the RK3588 PWM controllers.
ok kettenis@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/fdt/rkclock.c | 8 | ||||
-rw-r--r-- | sys/dev/fdt/rkclock_clocks.h | 1 |
2 files changed, 8 insertions, 1 deletions
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 <kettenis@openbsd.org> * @@ -4149,6 +4149,12 @@ const struct rkclock rk3588_clocks[] = { 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), { RK3588_PLL_CPLL } 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 |