[aadk-commits] dbailey: u-boot/trunk r855 - /u-boot/trunk/u-boot_1.1.3/board/s800i/
SVN commits to the AADK repository
aadk-commits at lists.digium.com
Thu Apr 24 15:40:28 CDT 2008
Author: dbailey
Date: Thu Apr 24 15:40:27 2008
New Revision: 855
URL: http://svn.digium.com/view/aadk?view=rev&rev=855
Log:
add test fields to the manufacturing eeprom
Modified:
u-boot/trunk/u-boot_1.1.3/board/s800i/dig_i2c_eeprom.h
u-boot/trunk/u-boot_1.1.3/board/s800i/i2c_cfg.c
Modified: u-boot/trunk/u-boot_1.1.3/board/s800i/dig_i2c_eeprom.h
URL: http://svn.digium.com/view/aadk/u-boot/trunk/u-boot_1.1.3/board/s800i/dig_i2c_eeprom.h?view=diff&rev=855&r1=854&r2=855
==============================================================================
--- u-boot/trunk/u-boot_1.1.3/board/s800i/dig_i2c_eeprom.h (original)
+++ u-boot/trunk/u-boot_1.1.3/board/s800i/dig_i2c_eeprom.h Thu Apr 24 15:40:27 2008
@@ -18,6 +18,8 @@
DIGCMD_MFG_DATE,
DIGCMD_MFG_VENDOR,
DIGCMD_CAPABILITY_CODE,
+ DIGCMD_MFG_TEST_RESULT,
+ DIGCMD_MFG_TEST_COUNT,
DIGCMD_CRC,
DIGCMD_NULL
};
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=855&r1=854&r2=855
==============================================================================
--- 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 Thu Apr 24 15:40:27 2008
@@ -37,6 +37,8 @@
{ .state = DIGCMD_MFG_DATE, .offset =38, .size = 4},
{ .state = DIGCMD_MFG_VENDOR, .offset =42, .size = 4},
{ .state = DIGCMD_CAPABILITY_CODE, .offset =46, .size = 32},
+ { .state = DIGCMD_MFG_TEST_RESULT, .offset =78, .size = 1},
+ { .state = DIGCMD_MFG_TEST_COUNT, .offset =79, .size = 1},
{ .state = DIGCMD_CRC, .offset =CRC_LOC,.size = 4},
{ .state = DIGCMD_NULL, .offset =0, .size = I2C_PROM_SIZE}
};
@@ -227,9 +229,19 @@
disp_buffer[curr_field->size] = '\0';
printf("Capability=%s\n", disp_buffer);
break;
+
+ case DIGCMD_MFG_TEST_RESULT:
+ printf("Test result=%s\n", 1 == prom_image[curr_field->offset] ? "pass" : "fail");
+ break;
+
+ case DIGCMD_MFG_TEST_COUNT:
+ printf("Test count=%d\n", prom_image[curr_field->offset]);
+ break;
+
case DIGCMD_CRC:
break;
- default:
+
+ default:
printf("INTERNAL ERROR: Unrecognised data entry field\n");
break;
}
More information about the aadk-commits
mailing list