From: kettenis Date: Mon, 22 Aug 2016 19:38:42 +0000 (+0000) Subject: Use new clock API. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=db9e40834d09437f5bd09b7f60caa53dfaae5a5b;p=openbsd Use new clock API. --- diff --git a/sys/arch/armv7/sunxi/sxie.c b/sys/arch/armv7/sunxi/sxie.c index 8e543038e04..0f40ab7fd68 100644 --- a/sys/arch/armv7/sunxi/sxie.c +++ b/sys/arch/armv7/sunxi/sxie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxie.c,v 1.20 2016/08/15 09:20:47 kettenis Exp $ */ +/* $OpenBSD: sxie.c,v 1.21 2016/08/22 19:38:42 kettenis Exp $ */ /* * Copyright (c) 2012-2013 Patrick Wildt * Copyright (c) 2013 Artturi Alm @@ -46,11 +46,10 @@ #include #include -#include #include -#include #include +#include #include #include @@ -226,6 +225,8 @@ sxie_attach(struct device *parent, struct device *self, void *aux) if (bus_space_map(sc->sc_iot, SID_ADDR, SID_SIZE, 0, &sc->sc_sid_ioh)) panic("sxie_attach: bus_space_map sid_ioh failed!"); + clock_enable_all(faa->fa_node); + sxie_socware_init(sc); sc->txf_inuse = 0; @@ -278,8 +279,6 @@ sxie_socware_init(struct sxie_softc *sc) int have_mac = 0; uint32_t reg; - sxiccmu_enablemodule(CCMU_EMAC); - /* MII clock cfg */ SXICMS4(sc, SXIE_MACMCFG, 15 << 2, 13 << 2);