Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/odroid Add i2c bits for gpio to the connecte...



details:   https://anonhg.NetBSD.org/src/rev/74d1c32efe54
branches:  trunk
changeset: 331971:74d1c32efe54
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Wed Sep 03 15:24:52 2014 +0000

description:
Add i2c bits for gpio to the connected GPIO pins for Exynos5

diffstat:

 sys/arch/evbarm/odroid/odroid_machdep.c |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r ab43259850f2 -r 74d1c32efe54 sys/arch/evbarm/odroid/odroid_machdep.c
--- a/sys/arch/evbarm/odroid/odroid_machdep.c   Wed Sep 03 14:40:36 2014 +0000
+++ b/sys/arch/evbarm/odroid/odroid_machdep.c   Wed Sep 03 15:24:52 2014 +0000
@@ -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 @@
         * 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);



Home | Main Index | Thread Index | Old Index