diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-08-21 23:02:33 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-08-21 23:02:33 +0000 |
commit | e6dbdd13b93200b4a3efd77f0b73e4e863a8722b (patch) | |
tree | 68ee5ddc35200326d22d38869e0637b7c7693999 /sys/arch | |
parent | cb8cd6755a7c2a68d72922bf8df065930d4d9640 (diff) |
Use generic clock API to enable the module clock.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/armv7/sunxi/sximmc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/armv7/sunxi/sximmc.c b/sys/arch/armv7/sunxi/sximmc.c index 38276a0b069..9144e2b5981 100644 --- a/sys/arch/armv7/sunxi/sximmc.c +++ b/sys/arch/armv7/sunxi/sximmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sximmc.c,v 1.2 2016/08/20 19:41:14 kettenis Exp $ */ +/* $OpenBSD: sximmc.c,v 1.3 2016/08/21 23:02:32 kettenis Exp $ */ /* $NetBSD: awin_mmc.c,v 1.23 2015/11/14 10:32:40 bouyer Exp $ */ /*- @@ -44,6 +44,7 @@ #include <armv7/sunxi/sxiccmuvar.h> #include <dev/ofw/openfirm.h> +#include <dev/ofw/ofw_clock.h> #include <dev/ofw/ofw_gpio.h> #include <dev/ofw/ofw_pinctrl.h> #include <dev/ofw/fdt.h> @@ -365,7 +366,7 @@ sximmc_attach(struct device *parent, struct device *self, void *aux) pinctrl_byname(faa->fa_node, "default"); /* enable clock */ - sxiccmu_enablemodule(CCMU_SDMMC0 + sc->sc_unit); + clock_enable(faa->fa_node, NULL); delay(5000); #if 0 |