summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt/imxccm.c
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2020-03-20 17:32:25 +0000
committerpatrick <patrick@openbsd.org>2020-03-20 17:32:25 +0000
commita455bd9d770816a8205d897379b890e7a8df697f (patch)
treead2ce4baab08e9856f10014e78aa3d7757491b09 /sys/dev/fdt/imxccm.c
parentFix positioning of menu in choose modes and a couple of keys in tree mode. (diff)
downloadwireguard-openbsd-a455bd9d770816a8205d897379b890e7a8df697f.tar.xz
wireguard-openbsd-a455bd9d770816a8205d897379b890e7a8df697f.zip
The i.MX8MQ 32K clock is always on.
Diffstat (limited to 'sys/dev/fdt/imxccm.c')
-rw-r--r--sys/dev/fdt/imxccm.c5
1 files changed, 4 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;