summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-09-30 14:01:46 +0200
committerTom Rini <trini@konsulko.com>2023-10-16 10:22:11 -0400
commitede3234df9de88220bb500953d119f10fc67d6e9 (patch)
tree93b3949a639f06748f5a368e98f5fa5a391cb7cd
parentf54c7c533c6c917a69ef5b141c4abe6c0c26537d (diff)
eeprom: starfive: raw dump if unsupported data version
If the data version field of the EEPROM is not supported, provide a hexdump of the data. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r--board/starfive/visionfive2/visionfive2-i2c-eeprom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/starfive/visionfive2/visionfive2-i2c-eeprom.c b/board/starfive/visionfive2/visionfive2-i2c-eeprom.c
index fc0d981db22..8d8c96516e9 100644
--- a/board/starfive/visionfive2/visionfive2-i2c-eeprom.c
+++ b/board/starfive/visionfive2/visionfive2-i2c-eeprom.c
@@ -190,6 +190,7 @@ static void show_eeprom(void)
pbuf.eeprom.atom4.data.mac1_addr[4], pbuf.eeprom.atom4.data.mac1_addr[5]);
} else {
printf("Custom data v%d is not Supported\n", pbuf.eeprom.atom4.data.version);
+ dump_raw_eeprom();
}
printf("--------EEPROM INFO--------\n\n");
}