[aadk-commits] dbailey: u-boot/trunk r902 - /u-boot/trunk/u-boot_1.1.3/board/s800i/i2c_cfg.c
SVN commits to the AADK repository
aadk-commits at lists.digium.com
Tue Jun 10 11:17:32 CDT 2008
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-boot_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 times\n", 1 == val ? "pass" : "fail" , count);
}
return 0;
More information about the aadk-commits
mailing list