summaryrefslogtreecommitdiff
path: root/sys/arch/riscv64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2022-12-28 11:20:10 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2022-12-28 11:20:10 +0000
commit3c111e0b0580d305a05613f7a36c6393ac3d86d7 (patch)
tree41c47a1f9831d4ca8b876b2314efaa9199d498d4 /sys/arch/riscv64
parente409f1a2748f8e4b0de53ce93824f303e1e0b16f (diff)
Handle clock that can't be gated as a no-op.
ok patrick@
Diffstat (limited to 'sys/arch/riscv64')
-rw-r--r--sys/arch/riscv64/dev/stfclock.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/riscv64/dev/stfclock.c b/sys/arch/riscv64/dev/stfclock.c
index f91fe2391bf..2fef8b689db 100644
--- a/sys/arch/riscv64/dev/stfclock.c
+++ b/sys/arch/riscv64/dev/stfclock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stfclock.c,v 1.2 2022/06/12 10:51:55 kettenis Exp $ */
+/* $OpenBSD: stfclock.c,v 1.3 2022/12/28 11:20:09 kettenis Exp $ */
/*
* Copyright (c) 2022 Mark Kettenis <kettenis@openbsd.org>
*
@@ -289,6 +289,9 @@ stfclock_enable(void *cookie, uint32_t *cells, int on)
else
HCLR4(sc, idx * 4, 1U << 31);
return;
+ case JH7100_CLK_GMAC_ROOT_DIV:
+ /* No gate */
+ return;
}
printf("%s: 0x%08x\n", __func__, idx);