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 Change hexidecimal bit notation into ...



details:   https://anonhg.NetBSD.org/src/rev/2ba207ee69a7
branches:  trunk
changeset: 329218:2ba207ee69a7
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Thu May 15 15:35:37 2014 +0000

description:
Change hexidecimal bit notation into binary for easier modifying

diffstat:

 sys/arch/evbarm/odroid/odroid_machdep.c |  96 ++++++++++++++++----------------
 1 files changed, 48 insertions(+), 48 deletions(-)

diffs (119 lines):

diff -r 33f07459459d -r 2ba207ee69a7 sys/arch/evbarm/odroid/odroid_machdep.c
--- a/sys/arch/evbarm/odroid/odroid_machdep.c   Thu May 15 15:31:10 2014 +0000
+++ b/sys/arch/evbarm/odroid/odroid_machdep.c   Thu May 15 15:35:37 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: odroid_machdep.c,v 1.18 2014/05/15 15:31:10 reinoud Exp $ */
+/*     $NetBSD: odroid_machdep.c,v 1.19 2014/05/15 15:35:37 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.18 2014/05/15 15:31:10 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.19 2014/05/15 15:35:37 reinoud Exp $");
 
 #include "opt_evbarm_boardtype.h"
 #include "opt_exynos.h"
@@ -488,54 +488,54 @@
         * generated by the gpio bootstrap and the values substracted are
         * explicitly allowed
         */
-       prop_dictionary_set_uint32(dict, "nc-GPA0", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPA1", 0x3f - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPB",  0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPC0", 0x1f - 0x00);
+       prop_dictionary_set_uint32(dict, "nc-GPA0", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPA1", 0x3f - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPB",  0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPC0", 0x1f - 0b00000000);
        /* blue led at bit 0 : */
-       prop_dictionary_set_uint32(dict, "nc-GPC1", 0x1f - 0x01);
-       prop_dictionary_set_uint32(dict, "nc-GPD0", 0x0f - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPD1", 0x0f - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPF0", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPF1", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPF2", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPF3", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPJ0", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPJ1", 0x1f - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPK0", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPK1", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPK2", 0x7f - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPK3", 0x7f - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPL0", 0x7f - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPL1", 0x03 - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPL2", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPY0", 0x3f - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPY1", 0x0f - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPY2", 0x3f - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPY3", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPY4", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPY5", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPY6", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-ETC0", 0x3f - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-ETC6", 0x7f - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPM0", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPM1", 0x7f - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPM2", 0x1f - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPM3", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPM4", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPX0", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPX1", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPX2", 0xff - 0x00);
+       prop_dictionary_set_uint32(dict, "nc-GPC1", 0x1f - 0b00000001);
+       prop_dictionary_set_uint32(dict, "nc-GPD0", 0x0f - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPD1", 0x0f - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPF0", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPF1", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPF2", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPF3", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPJ0", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPJ1", 0x1f - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPK0", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPK1", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPK2", 0x7f - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPK3", 0x7f - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPL0", 0x7f - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPL1", 0x03 - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPL2", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPY0", 0x3f - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPY1", 0x0f - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPY2", 0x3f - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPY3", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPY4", 0xff - 0b00000000);
+       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);
+       prop_dictionary_set_uint32(dict, "nc-GPM0", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPM1", 0x7f - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPM2", 0x1f - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPM3", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPM4", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPX0", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPX1", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPX2", 0xff - 0b00000000);
        /* hub communication at pin 0, 4, 5: */
-       prop_dictionary_set_uint32(dict, "nc-GPX3", 0xff - 0x31);
-       prop_dictionary_set_uint32(dict, "nc-GPZ",  0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPV0", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPV1", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-ETC7", 0x03 - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPV2", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPV3", 0xff - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-ETC8", 0x03 - 0x00);
-       prop_dictionary_set_uint32(dict, "nc-GPV4", 0x03 - 0x00);
+       prop_dictionary_set_uint32(dict, "nc-GPX3", 0xff - 0b00110001);
+       prop_dictionary_set_uint32(dict, "nc-GPZ",  0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPV0", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPV1", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-ETC7", 0x03 - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPV2", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPV3", 0xff - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-ETC8", 0x03 - 0b00000000);
+       prop_dictionary_set_uint32(dict, "nc-GPV4", 0x03 - 0b00000000);
 }
 #endif
 



Home | Main Index | Thread Index | Old Index