From: Enrico Leto <enrico.l...@siemens.com> The eeprom contains the information on which module we are running, so read it from the eeprom and print it on the console.
Signed-off-by: Enrico Leto <enrico.l...@siemens.com> Signed-off-by: Heiko Schocher <h...@denx.de> --- board/siemens/capricorn/board.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/board/siemens/capricorn/board.c b/board/siemens/capricorn/board.c index cfec649bae9..0c66dcead46 100644 --- a/board/siemens/capricorn/board.c +++ b/board/siemens/capricorn/board.c @@ -319,6 +319,7 @@ int board_init(void) { #ifndef CONFIG_XPL_BUILD struct chip_data eeprom_data = {}; + char module_name[16]; int ret; ret = siemens_ee_setup(); @@ -327,6 +328,11 @@ int board_init(void) goto skip; } + /* Get module name from EEPROM */ + siemens_ee_read_data(SIEMENS_EE_ADDR_DDR3, module_name, + sizeof(module_name)); + printf("CPU module: %s\n", module_name); + ret = siemens_ee_read_data(SIEMENS_EE_ADDR_CHIP, (uchar *)&eeprom_data, sizeof(eeprom_data)); -- 2.20.1