Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/awin setup gmac phy power gpio for Bananapi
details: https://anonhg.NetBSD.org/src/rev/af980113bc34
branches: trunk
changeset: 333094:af980113bc34
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Oct 18 12:36:39 2014 +0000
description:
setup gmac phy power gpio for Bananapi
diffstat:
sys/arch/evbarm/awin/awin_machdep.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 573e342ef600 -r af980113bc34 sys/arch/evbarm/awin/awin_machdep.c
--- a/sys/arch/evbarm/awin/awin_machdep.c Sat Oct 18 12:36:08 2014 +0000
+++ b/sys/arch/evbarm/awin/awin_machdep.c Sat Oct 18 12:36:39 2014 +0000
@@ -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 @@
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 @@
prop_dictionary_set_cstring(dict, "phy-type", "mii");
}
#endif
+#if AWIN_BOARD == AWIN_bpi
+ prop_dictionary_set_cstring(dict, "phy-power", "gmacpwren");
+#endif
return;
}
Home |
Main Index |
Thread Index |
Old Index