From 6a31df46a230206a4435b611d4bc401518aa6dc4 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 1 Jan 2019 17:12:59 +0000 Subject: Add some additional RK3399 clocks that are used by the current Linux mainline device tree. --- sys/dev/fdt/rkclock.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'sys/dev/fdt/rkclock.c') 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 * @@ -1526,6 +1526,16 @@ struct rkclock rk3399_clocks[] = { { RK3399_PLL_CPLL, RK3399_PLL_GPLL, RK3399_PLL_NPLL, 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), @@ -1541,6 +1551,11 @@ struct rkclock rk3399_clocks[] = { 0, DIV(10, 8), { 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), -- cgit v1.2.3