summaryrefslogtreecommitdiff
path: root/sys/dev/fdt/rkclock.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2019-01-01 17:12:59 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2019-01-01 17:12:59 +0000
commit6a31df46a230206a4435b611d4bc401518aa6dc4 (patch)
treed314f771fe6c851d4745289e519fd31104cb5ab7 /sys/dev/fdt/rkclock.c
parent5b86921d91e017784d54b7f5189b0c85ec6f878b (diff)
Add some additional RK3399 clocks that are used by the current Linux
mainline device tree.
Diffstat (limited to 'sys/dev/fdt/rkclock.c')
-rw-r--r--sys/dev/fdt/rkclock.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/dev/fdt/rkclock.c b/sys/dev/fdt/rkclock.c
index 80fb368b999..225701d8942 100644
--- a/sys/dev/fdt/rkclock.c
+++ b/sys/dev/fdt/rkclock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rkclock.c,v 1.40 2019/01/01 15:54:33 kettenis Exp $ */
+/* $OpenBSD: rkclock.c,v 1.41 2019/01/01 17:12:58 kettenis Exp $ */
/*
* Copyright (c) 2017, 2018 Mark Kettenis <kettenis@openbsd.org>
*
@@ -1527,6 +1527,16 @@ struct rkclock rk3399_clocks[] = {
RK3399_PLL_VPLL }
},
{
+ RK3399_ACLK_HDCP, RK3399_CRU_CLKSEL_CON(42),
+ SEL(15, 14), DIV(12, 8),
+ { RK3399_PLL_CPLL, RK3399_PLL_GPLL, /* RK3399_PLL_PPLL */ }
+ },
+ {
+ RK3399_ACLK_GIC_PRE, RK3399_CRU_CLKSEL_CON(56),
+ SEL(15, 15), DIV(12, 8),
+ { RK3399_PLL_CPLL, RK3399_PLL_GPLL }
+ },
+ {
RK3399_PCLK_PERIPH, RK3399_CRU_CLKSEL_CON(14),
0, DIV(14, 12),
{ RK3399_ACLK_PERIPH }
@@ -1542,6 +1552,11 @@ struct rkclock rk3399_clocks[] = {
{ RK3399_HCLK_PERILP1 }
},
{
+ RK3399_PCLK_DDR, RK3399_CRU_CLKSEL_CON(6),
+ SEL(15, 15), DIV(12, 8),
+ { RK3399_PLL_CPLL, RK3399_PLL_GPLL }
+ },
+ {
RK3399_HCLK_PERIPH, RK3399_CRU_CLKSEL_CON(14),
0, DIV(9, 8),
{ RK3399_ACLK_PERIPH }