Module Name:    src
Committed By:   reinoud
Date:           Mon Aug 25 16:56:14 UTC 2014

Modified Files:
        src/sys/arch/evbarm/odroid: odroid_machdep.c

Log Message:
Enable Xuhost gpio pins; they are the same on Exynos5 series.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/evbarm/odroid/odroid_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/odroid/odroid_machdep.c
diff -u src/sys/arch/evbarm/odroid/odroid_machdep.c:1.28 src/sys/arch/evbarm/odroid/odroid_machdep.c:1.29
--- src/sys/arch/evbarm/odroid/odroid_machdep.c:1.28	Mon Aug 25 16:49:43 2014
+++ src/sys/arch/evbarm/odroid/odroid_machdep.c	Mon Aug 25 16:56:14 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: odroid_machdep.c,v 1.28 2014/08/25 16:49:43 reinoud Exp $ */
+/*	$NetBSD: odroid_machdep.c,v 1.29 2014/08/25 16:56:14 reinoud Exp $ */
 
 /*
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.28 2014/08/25 16:49:43 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.29 2014/08/25 16:56:14 reinoud Exp $");
 
 #include "opt_evbarm_boardtype.h"
 #include "opt_exynos.h"
@@ -618,7 +618,8 @@ odroid_exynos5_gpio_ncs(device_t self, p
 	prop_dictionary_set_uint32(dict, "nc-GPY5", 0xff - 0b00000000);
 	prop_dictionary_set_uint32(dict, "nc-GPY6", 0xff - 0b00000000);
 	prop_dictionary_set_uint32(dict, "nc-ETC0", 0x3f - 0b00000000);
-	prop_dictionary_set_uint32(dict, "nc-ETC6", 0x7f - 0b00000000);
+	/* standard Xuhost bits at pin 5,6 */
+	prop_dictionary_set_uint32(dict, "nc-ETC6", 0x7f - 0b01100000);
 	prop_dictionary_set_uint32(dict, "nc-ETC7", 0x1f - 0b00000000);
 	prop_dictionary_set_uint32(dict, "nc-GPC4", 0x3f - 0b00000000);
 	/* usb hub communication at bit 6,7 : */

Reply via email to