Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/allwinner Use symbolic constant instead of (wro...
details: https://anonhg.NetBSD.org/src/rev/e4fd00d6fb5f
branches: trunk
changeset: 803238:e4fd00d6fb5f
user: martin <martin%NetBSD.org@localhost>
date: Sat Oct 18 12:45:25 2014 +0000
description:
Use symbolic constant instead of (wrong) magic number for mii clk selection.
diffstat:
sys/arch/arm/allwinner/awin_gige.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 87e35c84439e -r e4fd00d6fb5f sys/arch/arm/allwinner/awin_gige.c
--- a/sys/arch/arm/allwinner/awin_gige.c Sat Oct 18 12:43:25 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_gige.c Sat Oct 18 12:45:25 2014 +0000
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: awin_gige.c,v 1.12 2014/10/18 12:36:08 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_gige.c,v 1.13 2014/10/18 12:45:25 martin Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -49,6 +49,7 @@
#include <dev/mii/miivar.h>
#include <dev/ic/dwc_gmac_var.h>
+#include <dev/ic/dwc_gmac_reg.h>
static int awin_gige_match(device_t, cfdata_t, void *);
static void awin_gige_attach(device_t, device_t, void *);
@@ -152,7 +153,7 @@
awin_reg_set_clear(aio->aio_core_bst, aio->aio_ccm_bsh,
AWIN_GMAC_CLK_REG, clkreg, AWIN_GMAC_CLK_PIT|AWIN_GMAC_CLK_TCS);
- dwc_gmac_attach(&sc->sc_core, 2);
+ dwc_gmac_attach(&sc->sc_core, GMAC_MII_CLK_150_250M_DIV102);
}
static int
Home |
Main Index |
Thread Index |
Old Index