[aadk-commits] dbailey: u-boot/trunk r216 -
/u-boot/trunk/u-boot_1.1.3/board/s800i/i2c_cfg.c
aadk-commits at lists.digium.com
aadk-commits at lists.digium.com
Fri Mar 9 15:24:50 MST 2007
Author: dbailey
Date: Fri Mar 9 16:24:50 2007
New Revision: 216
URL: http://svn.digium.com/view/aadk?view=rev&rev=216
Log:
Add blackfin silicon revision to arguments being passed to the kernel.
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=216&r1=215&r2=216
==============================================================================
--- 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 Fri Mar 9 16:24:50 2007
@@ -27,7 +27,8 @@
#define BOARDREV_ARG "boardrev"
#define PRODSKU_ARG "productsku"
#define CAPABILITY_ARG "capability"
-
+#define BLACKFINREV_ARG "bfinrev"
+
/* Map of where data is stored in the i2c eeprom */
const struct rom_location eeprom_map[] = {
{ .state = DIGCMD_BOARD_REVISION, .offset = 0, .size = 16},
@@ -158,6 +159,11 @@
sprintf(set_parm, " %s=%s", CAPABILITY_ARG, parm_val);
strcat(new_bootargs, set_parm);
}
+ /* If the Blackfin silicon revision is not set, then set it from ID register*/
+ if(NULL == strstr(new_bootargs, BLACKFINREV_ARG)){
+ sprintf(set_parm, " %s=0.%d", BLACKFINREV_ARG, *pCHIPID >>28);
+ strcat(new_bootargs, set_parm);
+ }
setenv("bootargs", new_bootargs);
return;
}
More information about the aadk-commits
mailing list