diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-12-30 13:34:57 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-12-30 13:34:57 +0000 |
commit | 2bc8744173665b06dab6db24698edf236b87b536 (patch) | |
tree | d12f832514c2e9be19436f8827913716af4f587b /sys/arch/armv7/imx/imxesdhc.c | |
parent | 5629c889def8cd7b869d76c0c7fd9b7d493c2c58 (diff) |
The generic clock framework expects frequencies in Hz whereas the imx clock
code was providing them in kHz. Get rid of this discrepancy.
Hook up the CPU clock to the generic clock framework and remove the
cpuspeed function as it is no longer needed.
ok patrick@
Diffstat (limited to 'sys/arch/armv7/imx/imxesdhc.c')
-rw-r--r-- | sys/arch/armv7/imx/imxesdhc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/armv7/imx/imxesdhc.c b/sys/arch/armv7/imx/imxesdhc.c index 164aed48c43..8414dedcb37 100644 --- a/sys/arch/armv7/imx/imxesdhc.c +++ b/sys/arch/armv7/imx/imxesdhc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxesdhc.c,v 1.37 2017/07/18 18:45:44 patrick Exp $ */ +/* $OpenBSD: imxesdhc.c,v 1.38 2017/12/30 13:34:56 kettenis Exp $ */ /* * Copyright (c) 2009 Dale Rahn <drahn@openbsd.org> * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -338,7 +338,7 @@ imxesdhc_attach(struct device *parent, struct device *self, void *aux) /* * Determine the base clock frequency. (2.2.24) */ - sc->clkbase = clock_get_frequency(faa->fa_node, "per"); + sc->clkbase = clock_get_frequency(faa->fa_node, "per") / 1000; printf("%s: %d MHz base clock\n", DEVNAME(sc), sc->clkbase / 1000); |