Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm Adjust all callers of dwc_gmac_attach, pass MII...
details: https://anonhg.NetBSD.org/src/rev/069ba1582aa7
branches: trunk
changeset: 449127:069ba1582aa7
user: martin <martin%NetBSD.org@localhost>
date: Sat Feb 23 17:18:38 2019 +0000
description:
Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now.
diffstat:
sys/arch/arm/altera/cycv_gmac.c | 6 +++---
sys/arch/arm/amlogic/meson_dwmac.c | 6 +++---
sys/arch/arm/rockchip/rk_gmac.c | 6 +++---
sys/arch/arm/sunxi/sunxi_gmac.c | 6 +++---
4 files changed, 12 insertions(+), 12 deletions(-)
diffs (108 lines):
diff -r fadccbfa7b04 -r 069ba1582aa7 sys/arch/arm/altera/cycv_gmac.c
--- a/sys/arch/arm/altera/cycv_gmac.c Sat Feb 23 17:18:07 2019 +0000
+++ b/sys/arch/arm/altera/cycv_gmac.c Sat Feb 23 17:18:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cycv_gmac.c,v 1.1 2018/09/19 17:31:38 aymeric Exp $ */
+/* $NetBSD: cycv_gmac.c,v 1.2 2019/02/23 17:18:38 martin Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cycv_gmac.c,v 1.1 2018/09/19 17:31:38 aymeric Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cycv_gmac.c,v 1.2 2019/02/23 17:18:38 martin Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -136,7 +136,7 @@
}
aprint_normal_dev(self, "interrupting on %s\n", intrstr);
- dwc_gmac_attach(sc, GMAC_MII_CLK_150_250M_DIV102);
+ dwc_gmac_attach(sc, MII_PHY_ANY, GMAC_MII_CLK_150_250M_DIV102);
}
CFATTACH_DECL_NEW(cycv_gmac, sizeof(struct dwc_gmac_softc),
diff -r fadccbfa7b04 -r 069ba1582aa7 sys/arch/arm/amlogic/meson_dwmac.c
--- a/sys/arch/arm/amlogic/meson_dwmac.c Sat Feb 23 17:18:07 2019 +0000
+++ b/sys/arch/arm/amlogic/meson_dwmac.c Sat Feb 23 17:18:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: meson_dwmac.c,v 1.1 2019/01/19 20:56:03 jmcneill Exp $ */
+/* $NetBSD: meson_dwmac.c,v 1.2 2019/02/23 17:18:38 martin Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: meson_dwmac.c,v 1.1 2019/01/19 20:56:03 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: meson_dwmac.c,v 1.2 2019/02/23 17:18:38 martin Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -187,7 +187,7 @@
if (meson_dwmac_reset(phandle) != 0)
aprint_error_dev(self, "PHY reset failed\n");
- dwc_gmac_attach(sc, GMAC_MII_CLK_100_150M_DIV62);
+ dwc_gmac_attach(sc, MII_PHY_ANY, GMAC_MII_CLK_100_150M_DIV62);
}
CFATTACH_DECL_NEW(meson_dwmac, sizeof(struct dwc_gmac_softc),
diff -r fadccbfa7b04 -r 069ba1582aa7 sys/arch/arm/rockchip/rk_gmac.c
--- a/sys/arch/arm/rockchip/rk_gmac.c Sat Feb 23 17:18:07 2019 +0000
+++ b/sys/arch/arm/rockchip/rk_gmac.c Sat Feb 23 17:18:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rk_gmac.c,v 1.8 2018/08/12 16:48:05 jmcneill Exp $ */
+/* $NetBSD: rk_gmac.c,v 1.9 2019/02/23 17:18:38 martin Exp $ */
/*-
* Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rk_gmac.c,v 1.8 2018/08/12 16:48:05 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rk_gmac.c,v 1.9 2019/02/23 17:18:38 martin Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -408,7 +408,7 @@
aprint_naive("\n");
aprint_normal(": GMAC\n");
- if (dwc_gmac_attach(sc, GMAC_MII_CLK_150_250M_DIV102) != 0)
+ if (dwc_gmac_attach(sc, MII_PHY_ANY, GMAC_MII_CLK_150_250M_DIV102) != 0)
return;
if (fdtbus_intr_establish(phandle, 0, IPL_NET, 0, rk_gmac_intr, sc) == NULL) {
diff -r fadccbfa7b04 -r 069ba1582aa7 sys/arch/arm/sunxi/sunxi_gmac.c
--- a/sys/arch/arm/sunxi/sunxi_gmac.c Sat Feb 23 17:18:07 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_gmac.c Sat Feb 23 17:18:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_gmac.c,v 1.2 2017/10/07 19:42:45 jmcneill Exp $ */
+/* $NetBSD: sunxi_gmac.c,v 1.3 2019/02/23 17:18:38 martin Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_gmac.c,v 1.2 2017/10/07 19:42:45 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_gmac.c,v 1.3 2019/02/23 17:18:38 martin Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -182,7 +182,7 @@
if (sunxi_gmac_reset(phandle) != 0)
aprint_error_dev(self, "PHY reset failed\n");
- dwc_gmac_attach(sc, GMAC_MII_CLK_150_250M_DIV102);
+ dwc_gmac_attach(sc, MII_PHY_ANY, GMAC_MII_CLK_150_250M_DIV102);
}
CFATTACH_DECL_NEW(sunxi_gmac, sizeof(struct dwc_gmac_softc),
Home |
Main Index |
Thread Index |
Old Index