diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-03-23 13:15:03 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-03-23 13:15:03 +0000 |
commit | 4e9e73c849443d0c3e3557228c5b524911bf4902 (patch) | |
tree | 817b1beb45db036f331654f4cb56642ce82543b0 | |
parent | b67a7440695c88e63d1f09bb0bace2586596fc0e (diff) |
correct rk3308 clk_32k_sel mask
ok jmatthew@
-rw-r--r-- | sys/dev/fdt/rkclock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fdt/rkclock.c b/sys/dev/fdt/rkclock.c index 9bec1b356e3..b56dcfe89a6 100644 --- a/sys/dev/fdt/rkclock.c +++ b/sys/dev/fdt/rkclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkclock.c,v 1.70 2023/03/19 10:18:17 dlg Exp $ */ +/* $OpenBSD: rkclock.c,v 1.71 2023/03/23 13:15:02 jsg Exp $ */ /* * Copyright (c) 2017, 2018 Mark Kettenis <kettenis@openbsd.org> * @@ -1382,7 +1382,7 @@ rk3308_get_rtc32k(struct rkclock_softc *sc) uint32_t reg, mux, pll, div_con; reg = HREAD4(sc, RK3308_CRU_CLKSEL_CON(2)); - mux = (reg & 0x30) >> 8; + mux = (reg & 0x300) >> 8; if (mux != 3) { printf("%s: RTC32K not using clk_32k_div\n", __func__); return 0; |