Module Name:    src
Committed By:   jmcneill
Date:           Tue Sep  9 02:43:19 UTC 2014

Modified Files:
        src/sys/arch/evbarm/awin: awin_machdep.c

Log Message:
cubieboard2 uses awge not awe


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 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.4 src/sys/arch/evbarm/awin/awin_machdep.c:1.5
--- src/sys/arch/evbarm/awin/awin_machdep.c:1.4	Sun Sep  7 06:26:08 2014
+++ src/sys/arch/evbarm/awin/awin_machdep.c	Tue Sep  9 02:43:19 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: awin_machdep.c,v 1.4 2014/09/07 06:26:08 skrll Exp $ */
+/*	$NetBSD: awin_machdep.c,v 1.5 2014/09/09 02:43:19 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.4 2014/09/07 06:26:08 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awin_machdep.c,v 1.5 2014/09/09 02:43:19 jmcneill Exp $");
 
 #include "opt_machdep.h"
 #include "opt_ddb.h"
@@ -585,7 +585,7 @@ awin_device_register(device_t self, void
 
 	if (device_is_a(self, "awinio")) {
 #if AWIN_board == AWIN_cubieboard || AWIN_board == AWIN_cubietruck
-		if (cubietruck_p) {
+		if (awin_chip_id() == AWIN_CHIP_ID_A20) {
 			prop_dictionary_set_bool(dict, "no-awe", true);
 		} else {
 			prop_dictionary_set_bool(dict, "no-awge", true);

Reply via email to