[aadk-commits] dbailey: branch u-boot/1.1 r854 - /u-boot/branches/1.1/u-boot_1.1.3/board/s800i/

SVN commits to the AADK repository aadk-commits at lists.digium.com
Thu Apr 24 15:31:18 CDT 2008


Author: dbailey
Date: Thu Apr 24 15:31:17 2008
New Revision: 854

URL: http://svn.digium.com/view/aadk?view=rev&rev=854
Log:
Add test fields to mfg eeprom 

Modified:
    u-boot/branches/1.1/u-boot_1.1.3/board/s800i/dig_i2c_eeprom.h
    u-boot/branches/1.1/u-boot_1.1.3/board/s800i/i2c_cfg.c

Modified: u-boot/branches/1.1/u-boot_1.1.3/board/s800i/dig_i2c_eeprom.h
URL: http://svn.digium.com/view/aadk/u-boot/branches/1.1/u-boot_1.1.3/board/s800i/dig_i2c_eeprom.h?view=diff&rev=854&r1=853&r2=854
==============================================================================
--- u-boot/branches/1.1/u-boot_1.1.3/board/s800i/dig_i2c_eeprom.h (original)
+++ u-boot/branches/1.1/u-boot_1.1.3/board/s800i/dig_i2c_eeprom.h Thu Apr 24 15:31:17 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/branches/1.1/u-boot_1.1.3/board/s800i/i2c_cfg.c
URL: http://svn.digium.com/view/aadk/u-boot/branches/1.1/u-boot_1.1.3/board/s800i/i2c_cfg.c?view=diff&rev=854&r1=853&r2=854
==============================================================================
--- u-boot/branches/1.1/u-boot_1.1.3/board/s800i/i2c_cfg.c (original)
+++ u-boot/branches/1.1/u-boot_1.1.3/board/s800i/i2c_cfg.c Thu Apr 24 15:31:17 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