diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-01-01 14:41:47 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-01-01 14:41:47 +0000 |
commit | 7f9612167d8dbd3e63d8250bdeaad0c6dab0276b (patch) | |
tree | 93692bca3711f0731fe6ccfacf318b9cfae68193 | |
parent | 281936ab530b47ad4dce993d3f2e997d831aa26e (diff) |
Add RK3328 TSADC clock.
-rw-r--r-- | sys/dev/fdt/rkclock.c | 12 | ||||
-rw-r--r-- | sys/dev/fdt/rkclock_clocks.h | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/sys/dev/fdt/rkclock.c b/sys/dev/fdt/rkclock.c index cd5df9b1d6a..7c8036daedb 100644 --- a/sys/dev/fdt/rkclock.c +++ b/sys/dev/fdt/rkclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkclock.c,v 1.38 2019/01/01 12:35:41 kettenis Exp $ */ +/* $OpenBSD: rkclock.c,v 1.39 2019/01/01 14:41:46 kettenis Exp $ */ /* * Copyright (c) 2017, 2018 Mark Kettenis <kettenis@openbsd.org> * @@ -803,6 +803,11 @@ struct rkclock rk3328_clocks[] = { RK3328_USB480M } }, { + RK3328_CLK_TSADC, RK3328_CRU_CLKSEL_CON(22), + 0, DIV(9, 0), + { RK3328_CLK_24M } + }, + { RK3328_CLK_UART0, RK3328_CRU_CLKSEL_CON(14), SEL(9, 8), 0, { 0, 0, RK3328_XIN24M, RK3328_XIN24M } @@ -949,6 +954,11 @@ struct rkclock rk3328_clocks[] = { { RK3328_ACLK_PERI_PRE } }, { + RK3328_CLK_24M, RK3328_CRU_CLKSEL_CON(2), + 0, DIV(12, 8), + { RK3328_XIN24M } + }, + { /* Sentinel */ } }; diff --git a/sys/dev/fdt/rkclock_clocks.h b/sys/dev/fdt/rkclock_clocks.h index 5666d4119c7..1e0456b125d 100644 --- a/sys/dev/fdt/rkclock_clocks.h +++ b/sys/dev/fdt/rkclock_clocks.h @@ -51,6 +51,7 @@ #define RK3328_CLK_SDMMC 33 #define RK3328_CLK_SDIO 34 #define RK3328_CLK_EMMC 35 +#define RK3328_CLK_TSADC 36 #define RK3328_CLK_UART0 38 #define RK3328_CLK_UART1 39 #define RK3328_CLK_UART2 40 @@ -87,6 +88,7 @@ #define RK3328_HCLK_BUS_PRE 328 #define RK3328_XIN24M 1023 +#define RK3328_CLK_24M 1022 /* * RK3399 clocks. |