summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2020-03-20 17:32:26 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2020-03-20 17:32:26 +0000
commit83f6331ddc43df7d32a1b60448e00b6e02e446b5 (patch)
tree452695a9638bfbd4309ad06b47adb4ff60538178
parent7621eb94b9853845c5f8e5ea2b9c578381e64bcf (diff)
The i.MX8MQ 32K clock is always on.
-rw-r--r--sys/dev/fdt/imxccm.c5
-rw-r--r--sys/dev/fdt/imxccm_clocks.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/fdt/imxccm.c b/sys/dev/fdt/imxccm.c
index 8a5d2cfea10..26df53f7ffc 100644
--- a/sys/dev/fdt/imxccm.c
+++ b/sys/dev/fdt/imxccm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imxccm.c,v 1.16 2020/03/11 12:17:42 patrick Exp $ */
+/* $OpenBSD: imxccm.c,v 1.17 2020/03/20 17:32:25 patrick Exp $ */
/*
* Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se>
*
@@ -937,6 +937,9 @@ imxccm_enable(void *cookie, uint32_t *cells, int on)
if (sc->sc_gates == imx8mq_gates) {
switch (idx) {
+ case IMX8MQ_CLK_32K:
+ /* always on */
+ return;
case IMX8MQ_CLK_PCIE1_CTRL:
case IMX8MQ_CLK_PCIE2_CTRL:
pcells[0] = sc->sc_phandle;
diff --git a/sys/dev/fdt/imxccm_clocks.h b/sys/dev/fdt/imxccm_clocks.h
index 71420524dfe..404a672cd1b 100644
--- a/sys/dev/fdt/imxccm_clocks.h
+++ b/sys/dev/fdt/imxccm_clocks.h
@@ -291,6 +291,7 @@ struct imxccm_mux imx7d_muxs[] = {
* i.MX8MQ clocks.
*/
+#define IMX8MQ_CLK_32K 0x01
#define IMX8MQ_ARM_PLL 0x0a
#define IMX8MQ_ARM_PLL_OUT 0x0c
#define IMX8MQ_SYS1_PLL_100M 0x48