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 Initialize all bits of the GMAC clock...



details:   https://anonhg.NetBSD.org/src/rev/50c6fd6309a8
branches:  trunk
changeset: 332699:50c6fd6309a8
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Oct 04 15:25:15 2014 +0000

description:
Initialize all bits of the GMAC clock register, add comments.

diffstat:

 sys/arch/arm/allwinner/awin_gige.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r 07fcb6ae94ce -r 50c6fd6309a8 sys/arch/arm/allwinner/awin_gige.c
--- a/sys/arch/arm/allwinner/awin_gige.c        Sat Oct 04 14:42:41 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_gige.c        Sat Oct 04 15:25:15 2014 +0000
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: awin_gige.c,v 1.7 2014/09/11 06:56:05 martin Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_gige.c,v 1.8 2014/10/04 15:25:15 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -126,10 +126,10 @@
        /*
         * We use RGMII phy mode, set up clock accordingly
         */
+       bus_space_write_4(aio->aio_core_bst, aio->aio_ccm_bsh,
+           AWIN_GMAC_CLK_REG, 4); /* GPIT = RMII */
        awin_reg_set_clear(aio->aio_core_bst, aio->aio_ccm_bsh,
-           AWIN_GMAC_CLK_REG, 4, 3);
-       awin_reg_set_clear(aio->aio_core_bst, aio->aio_ccm_bsh,
-           AWIN_GMAC_CLK_REG, 2, 0);
+           AWIN_GMAC_CLK_REG, 2, 0); /* GTCS = internal transmit clock */
 
        dwc_gmac_attach(&sc->sc_core, 2);
 }



Home | Main Index | Thread Index | Old Index