sc_clock_freq is in Hz, not kHz
This commit is contained in:
parent
b95315fc9f
commit
bdc2495a4a
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dwcmmc_fdt.c,v 1.4 2018/07/01 21:21:56 jmcneill Exp $ */
|
||||
/* $NetBSD: dwcmmc_fdt.c,v 1.5 2018/07/02 13:45:23 jmcneill Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2015-2018 Jared McNeill <jmcneill@invisible.ca>
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: dwcmmc_fdt.c,v 1.4 2018/07/01 21:21:56 jmcneill Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dwcmmc_fdt.c,v 1.5 2018/07/02 13:45:23 jmcneill Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/bus.h>
|
||||
@ -193,7 +193,7 @@ dwcmmc_fdt_bus_clock(struct dwc_mmc_softc *sc, int rate)
|
||||
return error;
|
||||
}
|
||||
|
||||
sc->sc_clock_freq = (clk_get_rate(esc->sc_clk_ciu) / ciu_div) / 1000;
|
||||
sc->sc_clock_freq = clk_get_rate(esc->sc_clk_ciu) / ciu_div;
|
||||
|
||||
aprint_debug_dev(sc->sc_dev, "set clock rate to %u kHz (target %u kHz)\n",
|
||||
sc->sc_clock_freq, rate);
|
||||
|
Loading…
Reference in New Issue
Block a user