diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2022-12-28 11:20:10 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2022-12-28 11:20:10 +0000 |
commit | 3c111e0b0580d305a05613f7a36c6393ac3d86d7 (patch) | |
tree | 41c47a1f9831d4ca8b876b2314efaa9199d498d4 | |
parent | e409f1a2748f8e4b0de53ce93824f303e1e0b16f (diff) |
Handle clock that can't be gated as a no-op.
ok patrick@
-rw-r--r-- | sys/arch/riscv64/dev/stfclock.c | 5 |
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); |