Handle clock that can't be gated as a no-op.
authorkettenis <kettenis@openbsd.org>
Wed, 28 Dec 2022 11:20:09 +0000 (11:20 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 28 Dec 2022 11:20:09 +0000 (11:20 +0000)
ok patrick@

sys/arch/riscv64/dev/stfclock.c

index f91fe23..2fef8b6 100644 (file)
@@ -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);