mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
arm, am335x, siemens: read COMP/ver from factoryset
Signed-off-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
7dc60d81a1
commit
4ac32b9c4d
2 changed files with 11 additions and 0 deletions
|
@ -249,6 +249,16 @@ int factoryset_read_eeprom(int i2c_addr)
|
||||||
debug("version number: %d\n", factory_dat.version);
|
debug("version number: %d\n", factory_dat.version);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Get COMP/ver from factory set if available */
|
||||||
|
if (0 <= get_factory_record_val(cp, size, (uchar *)"COMP",
|
||||||
|
(uchar *)"ver",
|
||||||
|
factory_dat.comp_version,
|
||||||
|
MAX_STRING_LENGTH)) {
|
||||||
|
debug("factoryset COMP/ver: %s\n", factory_dat.comp_version);
|
||||||
|
} else {
|
||||||
|
strcpy((char *)factory_dat.comp_version, "1.0");
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
|
|
@ -20,6 +20,7 @@ struct factorysetcontainer {
|
||||||
#endif
|
#endif
|
||||||
unsigned char serial[MAX_STRING_LENGTH];
|
unsigned char serial[MAX_STRING_LENGTH];
|
||||||
int version;
|
int version;
|
||||||
|
uchar comp_version[MAX_STRING_LENGTH];
|
||||||
};
|
};
|
||||||
|
|
||||||
int factoryset_read_eeprom(int i2c_addr);
|
int factoryset_read_eeprom(int i2c_addr);
|
||||||
|
|
Loading…
Reference in a new issue