Module Name: src
Committed By: jmcneill
Date: Tue May 1 21:18:23 UTC 2018
Modified Files:
src/sys/arch/arm/sunxi: sunxi_emac.c
Log Message:
Explicitly select external PHY on H6
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/arm/sunxi/sunxi_emac.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/sunxi/sunxi_emac.c
diff -u src/sys/arch/arm/sunxi/sunxi_emac.c:1.13 src/sys/arch/arm/sunxi/sunxi_emac.c:1.14
--- src/sys/arch/arm/sunxi/sunxi_emac.c:1.13 Mon Feb 19 20:22:48 2018
+++ src/sys/arch/arm/sunxi/sunxi_emac.c Tue May 1 21:18:23 2018
@@ -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 <[email protected]>
@@ -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 @@ sunxi_emac_setup_phy(struct sunxi_emac_s
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;