Email lists > AADK SVN repository > [aadk-commits] dbailey: u-boot/trunk r902 - /u-boot/trunk/u-boot_1.1.3/board/s800i/i2c_cfg.c > [aadk-commits] dbailey: u-boot/trunk r902 - /u-boot/trunk/u-boot_1.1.3/board/s800i/i2c_cfg.c

[aadk-commits] dbailey: u-boot/trunk r902 - /u-boot/trunk/u-boot_1.1.3/board/s800i/i2c_cfg.c




This post if a part of  this thread

2008-06-10 11:17:32
dbailey: u-boot/trunk r902 - /u-boot/trunk/u-boot_1.1.3/board/s800i/i2c_cfg.c
Author: dbailey
Date: Tue Jun 10 11:17:31 2008
New Revision: 902

URL: 
http://svn.digium.com/view/aadk?view=rev&rev=902
Log:
Updated test counting parameter

Modified:
    u-boot/trunk/u-boot_1.1.3/board/s800i/i2c_cfg.c

Modified: u-boot/trunk/u-boot_1.1.3/board/s800i/i2c_cfg.c
URL: http://svn.digium.com/view/aadk/u-boot/trunk/u-bo
ot_1.1.3/board/s800i/i2c_cfg.c?view=diff&rev=902&r1=
901&r2=902
============================================================
==================
--- u-boot/trunk/u-boot_1.1.3/board/s800i/i2c_cfg.c
(original)
+++ u-boot/trunk/u-boot_1.1.3/board/s800i/i2c_cfg.c Tue Jun
10 11:17:31 2008
 -399,7
+399,7 
 		if (count < 127 ) {
 			count++;
 		} else if (count > 127 ) {
-			count = 0;
+			count = 1;  /* running for the first time */
 		}
 		prom_image[curr_field->offset] = count;
 
 -420,6
+420,9 
 		for (curr_field = &eeprom_map[0];
curr_field->state != DIGCMD_MFG_TEST_COUNT;
curr_field++)
 		{}
 		count = prom_image[curr_field->offset];
+		if (count > 127) {
+			count = 0; /* this has never been run */
+		}
 		printf("MFG test result is %s. Test has been run %d
timesn", 1 == val ? "pass" :
"fail" , count);
 	}
 	return 0;


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

aadk-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/aadk-commits

about | contact  Other archives ( Real Estate discussion Medical topics )