Module Name: src Committed By: reinoud Date: Thu May 15 15:35:38 UTC 2014
Modified Files: src/sys/arch/evbarm/odroid: odroid_machdep.c Log Message: Change hexidecimal bit notation into binary for easier modifying To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 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.18 src/sys/arch/evbarm/odroid/odroid_machdep.c:1.19 --- src/sys/arch/evbarm/odroid/odroid_machdep.c:1.18 Thu May 15 15:31:10 2014 +++ src/sys/arch/evbarm/odroid/odroid_machdep.c Thu May 15 15:35:37 2014 @@ -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 @@ odroid_exynos4_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 - 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