diff options
author | Heiko Schocher <hs@denx.de> | 2014-11-18 11:51:05 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-12-04 21:28:32 -0500 |
commit | 4ac32b9c4db8e9e427584024c93773927644f7f4 (patch) | |
tree | d7901c0202226b288b6abf4424bdc170cb296866 /board/siemens/common/factoryset.c | |
parent | 7dc60d81a1876cdc5946da2011d5a34339be8e37 (diff) |
arm, am335x, siemens: read COMP/ver from factoryset
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/siemens/common/factoryset.c')
-rw-r--r-- | board/siemens/common/factoryset.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/siemens/common/factoryset.c b/board/siemens/common/factoryset.c index d98e59d114..be0091d133 100644 --- a/board/siemens/common/factoryset.c +++ b/board/siemens/common/factoryset.c @@ -249,6 +249,16 @@ int factoryset_read_eeprom(int i2c_addr) 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; err: |