Module Name: src
Committed By: jmcneill
Date: Sat Oct 18 12:36:39 UTC 2014
Modified Files:
src/sys/arch/evbarm/awin: awin_machdep.c
Log Message:
setup gmac phy power gpio for Bananapi
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 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.16 src/sys/arch/evbarm/awin/awin_machdep.c:1.17
--- src/sys/arch/evbarm/awin/awin_machdep.c:1.16 Fri Oct 17 20:24:18 2014
+++ src/sys/arch/evbarm/awin/awin_machdep.c Sat Oct 18 12:36:39 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_machdep.c,v 1.16 2014/10/17 20:24:18 jmcneill Exp $ */
+/* $NetBSD: awin_machdep.c,v 1.17 2014/10/18 12:36:39 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.16 2014/10/17 20:24:18 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awin_machdep.c,v 1.17 2014/10/18 12:36:39 jmcneill Exp $");
#include "opt_machdep.h"
#include "opt_ddb.h"
@@ -635,6 +635,10 @@ awin_device_register(device_t self, void
prop_dictionary_set_cstring(dict, "audiopactrl", ">PH15");
#endif
+#if AWIN_board == AWIN_bpi
+ prop_dictionary_set_cstring(dict, "gmacpwren", ">PH23");
+#endif
+
/*
* These pins have no connections.
*/
@@ -680,6 +684,9 @@ awin_device_register(device_t self, void
prop_dictionary_set_cstring(dict, "phy-type", "mii");
}
#endif
+#if AWIN_BOARD == AWIN_bpi
+ prop_dictionary_set_cstring(dict, "phy-power", "gmacpwren");
+#endif
return;
}