diff options
author | Heiko Schocher <hs@denx.de> | 2014-11-18 11:51:06 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-12-04 21:28:32 -0500 |
commit | 0c331ebcc6843bb5e4e6727d1b4a13ef2284a5ab (patch) | |
tree | ccec1c14aae6786763a60cbf2cfd7a19da3f54fb /board/siemens/rut | |
parent | 4ac32b9c4db8e9e427584024c93773927644f7f4 (diff) | |
download | u-boot-0c331ebcc6843bb5e4e6727d1b4a13ef2284a5ab.tar.gz |
arm, am335x: siemens boards add FIT support
add FIT support and set "boardid" from factoryset records
"DEV/id" and "COMP/ver". "boardid" is used for selecting
which fit configuration gets booted on the board.
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/siemens/rut')
-rw-r--r-- | board/siemens/rut/board.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/board/siemens/rut/board.c b/board/siemens/rut/board.c index 1752df2c4f..fb840f7ed2 100644 --- a/board/siemens/rut/board.c +++ b/board/siemens/rut/board.c @@ -467,4 +467,27 @@ static int board_video_init(void) return 0; } #endif /* ifdef CONFIG_VIDEO */ + +#ifdef CONFIG_BOARD_LATE_INIT +int board_late_init(void) +{ + int ret; + char tmp[2 * MAX_STRING_LENGTH + 2]; + + omap_nand_switch_ecc(1, 8); + + if (factory_dat.asn[0] != 0) + sprintf(tmp, "%s_%s", factory_dat.asn, + factory_dat.comp_version); + else + sprintf(tmp, "QMX7.E38_4.0"); + + ret = setenv("boardid", tmp); + if (ret) + printf("error setting board id\n"); + + return 0; +} +#endif + #include "../common/board.c" |