Module Name: src Committed By: jmcneill Date: Fri Oct 17 20:24:18 UTC 2014
Modified Files: src/sys/arch/evbarm/awin: awin_machdep.c Log Message: Cubieboard2 uses GMAC with a 100Mbit PHY. Set phy-type property to "mii" for awge To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/evbarm/awin/awin_machdep.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/evbarm/awin/awin_machdep.c diff -u src/sys/arch/evbarm/awin/awin_machdep.c:1.15 src/sys/arch/evbarm/awin/awin_machdep.c:1.16 --- src/sys/arch/evbarm/awin/awin_machdep.c:1.15 Sun Oct 12 14:04:52 2014 +++ src/sys/arch/evbarm/awin/awin_machdep.c Fri Oct 17 20:24:18 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: awin_machdep.c,v 1.15 2014/10/12 14:04:52 jmcneill Exp $ */ +/* $NetBSD: awin_machdep.c,v 1.16 2014/10/17 20:24:18 jmcneill Exp $ */ /* * Machine dependent functions for kernel setup for TI OSK5912 board. @@ -125,7 +125,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: awin_machdep.c,v 1.15 2014/10/12 14:04:52 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: awin_machdep.c,v 1.16 2014/10/17 20:24:18 jmcneill Exp $"); #include "opt_machdep.h" #include "opt_ddb.h" @@ -673,6 +673,16 @@ awin_device_register(device_t self, void return; } + if (device_is_a(self, "awge")) { +#if AWIN_board == AWIN_cubieboard + if (awin_chip_id() == AWIN_CHIP_ID_A20) { + /* Cubieboard2 uses GMAC with a 100Mbit PHY */ + prop_dictionary_set_cstring(dict, "phy-type", "mii"); + } +#endif + return; + } + if (device_is_a(self, "com")) { #if NAWIN_FB > 0 if (use_fb_console)