From: jsg Date: Thu, 23 Mar 2023 13:15:02 +0000 (+0000) Subject: correct rk3308 clk_32k_sel mask X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3f41a742d5156bf54bd18644cbc8c32b569c7bf3;p=openbsd correct rk3308 clk_32k_sel mask ok jmatthew@ --- 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 * @@ -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;