Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/sunxi Explicitly select external PHY on H6



details:   https://anonhg.NetBSD.org/src/rev/3a540a1d72e3
branches:  trunk
changeset: 832162:3a540a1d72e3
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue May 01 21:18:23 2018 +0000

description:
Explicitly select external PHY on H6

diffstat:

 sys/arch/arm/sunxi/sunxi_emac.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2a8084d163a0 -r 3a540a1d72e3 sys/arch/arm/sunxi/sunxi_emac.c
--- a/sys/arch/arm/sunxi/sunxi_emac.c   Tue May 01 21:16:02 2018 +0000
+++ b/sys/arch/arm/sunxi/sunxi_emac.c   Tue May 01 21:18:23 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_emac.c,v 1.13 2018/02/19 20:22:48 jmcneill Exp $ */
+/* $NetBSD: sunxi_emac.c,v 1.14 2018/05/01 21:18:23 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2016-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -33,7 +33,7 @@
 #include "opt_net_mpsafe.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_emac.c,v 1.13 2018/02/19 20:22:48 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_emac.c,v 1.14 2018/05/01 21:18:23 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -952,7 +952,7 @@
                reg |= (rx_delay << EMAC_CLK_ERXDC_SHIFT);
        }
 
-       if (sc->type == EMAC_H3) {
+       if (sc->type == EMAC_H3 || sc->type == EMAC_H6) {
                if (sunxi_emac_has_internal_phy(sc)) {
                        reg |= EMAC_CLK_EPHY_SELECT;
                        reg &= ~EMAC_CLK_EPHY_SHUTDOWN;



Home | Main Index | Thread Index | Old Index