Module Name: src
Committed By: reinoud
Date: Wed Sep 3 15:24:53 UTC 2014
Modified Files:
src/sys/arch/evbarm/odroid: odroid_machdep.c
Log Message:
Add i2c bits for gpio to the connected GPIO pins for Exynos5
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 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.31 src/sys/arch/evbarm/odroid/odroid_machdep.c:1.32
--- src/sys/arch/evbarm/odroid/odroid_machdep.c:1.31 Thu Aug 28 18:02:37 2014
+++ src/sys/arch/evbarm/odroid/odroid_machdep.c Wed Sep 3 15:24:52 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: odroid_machdep.c,v 1.31 2014/08/28 18:02:37 reinoud Exp $ */
+/* $NetBSD: odroid_machdep.c,v 1.32 2014/09/03 15:24:52 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.31 2014/08/28 18:02:37 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.32 2014/09/03 15:24:52 reinoud Exp $");
#include "opt_evbarm_boardtype.h"
#include "opt_exynos.h"
@@ -597,15 +597,18 @@ odroid_exynos5_gpio_ncs(device_t self, p
* generated by the gpio bootstrap and the values substracted are
* explicitly allowed
*/
- prop_dictionary_set_uint32(dict, "nc-GPA0", 0xff - 0b00000000);
+ /* i2c2 at pin 6,7 */
+ prop_dictionary_set_uint32(dict, "nc-GPA0", 0xff - 0b11000000);
prop_dictionary_set_uint32(dict, "nc-GPA1", 0x3f - 0b00000000);
- prop_dictionary_set_uint32(dict, "nc-GPA2", 0xff - 0b00000000);
+ /* i2c4 at pin 0,1 */
+ prop_dictionary_set_uint32(dict, "nc-GPA2", 0xff - 0b00000011);
prop_dictionary_set_uint32(dict, "nc-GPB0", 0x1f - 0b00000000);
prop_dictionary_set_uint32(dict, "nc-GPB1", 0x1f - 0b00000000);
/* green led at bit 1 : eMMC activity */
/* red led at bit 2 : heartbeat */
prop_dictionary_set_uint32(dict, "nc-GPB2", 0x0f - 0b00000110);
- prop_dictionary_set_uint32(dict, "nc-GPB3", 0x0f - 0b00000000);
+ /* i2c1 at pin 2,3 */
+ prop_dictionary_set_uint32(dict, "nc-GPB3", 0x0f - 0b00001100);
prop_dictionary_set_uint32(dict, "nc-GPC0", 0x7f - 0b00000000);
prop_dictionary_set_uint32(dict, "nc-GPC1", 0x0f - 0b00000000);
prop_dictionary_set_uint32(dict, "nc-GPC2", 0x7f - 0b00000000);