diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-03-02 19:48:14 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-03-02 19:48:14 +0000 |
commit | faf1f9742becfb32ebc8ae6ba9fe3505de56ef08 (patch) | |
tree | 9acc90280f9ea79d9a872ef20c43a274e91252e2 /sys/dev/fdt/rkclock.c | |
parent | 3008e26bf29e5ab455b1f9767a73e6045d74c3d6 (diff) |
Add clocks for the RK3588 SPI controller.
From patrick@
Diffstat (limited to 'sys/dev/fdt/rkclock.c')
-rw-r--r-- | sys/dev/fdt/rkclock.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/sys/dev/fdt/rkclock.c b/sys/dev/fdt/rkclock.c index 5e94ab4de5e..653c164dca8 100644 --- a/sys/dev/fdt/rkclock.c +++ b/sys/dev/fdt/rkclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkclock.c,v 1.85 2024/02/26 18:54:25 kettenis Exp $ */ +/* $OpenBSD: rkclock.c,v 1.86 2024/03/02 19:48:13 kettenis Exp $ */ /* * Copyright (c) 2017, 2018 Mark Kettenis <kettenis@openbsd.org> * @@ -3898,6 +3898,31 @@ const struct rkclock rk3588_clocks[] = { { RK3588_CLK_200M_SRC , RK3588_CLK_100M_SRC }, }, { + RK3588_CLK_SPI0, RK3588_CRU_CLKSEL_CON(59), + SEL(3, 2), 0, + { RK3588_CLK_200M_SRC, RK3588_CLK_150M_SRC, RK3588_XIN24M }, + }, + { + RK3588_CLK_SPI1, RK3588_CRU_CLKSEL_CON(59), + SEL(5, 4), 0, + { RK3588_CLK_200M_SRC, RK3588_CLK_150M_SRC, RK3588_XIN24M }, + }, + { + RK3588_CLK_SPI2, RK3588_CRU_CLKSEL_CON(59), + SEL(7, 6), 0, + { RK3588_CLK_200M_SRC, RK3588_CLK_150M_SRC, RK3588_XIN24M }, + }, + { + RK3588_CLK_SPI3, RK3588_CRU_CLKSEL_CON(59), + SEL(9, 8), 0, + { RK3588_CLK_200M_SRC, RK3588_CLK_150M_SRC, RK3588_XIN24M }, + }, + { + RK3588_CLK_SPI4, RK3588_CRU_CLKSEL_CON(59), + SEL(11, 10), 0, + { RK3588_CLK_200M_SRC, RK3588_CLK_150M_SRC, RK3588_XIN24M }, + }, + { RK3588_CLK_UART1_SRC, RK3588_CRU_CLKSEL_CON(41), SEL(14, 14), DIV(13, 9), { RK3588_PLL_GPLL, RK3588_PLL_CPLL } |