From: Enrico Leto Date: Sat, 23 Nov 2024 16:53:01 +0000 (+0100) Subject: siemens: capricorn: get module name from eeprom X-Git-Tag: v2025.04-rc1~60^2~12^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eceaa88ade0c45891d758444bab4e4aee1755932;p=pandora-u-boot.git siemens: capricorn: get module name from eeprom 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 Signed-off-by: Heiko Schocher --- diff --git a/board/siemens/capricorn/board.c b/board/siemens/capricorn/board.c index 484e2707183..390a7b0d841 100644 --- a/board/siemens/capricorn/board.c +++ b/board/siemens/capricorn/board.c @@ -314,6 +314,7 @@ int checkboard(void) int board_init(void) { struct chip_data eeprom_data = {}; + char module_name[16]; int ret; ret = siemens_ee_setup(); @@ -322,6 +323,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));