]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
eeprom: starfive: raw dump if unsupported data version
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 30 Sep 2023 12:01:46 +0000 (14:01 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 16 Oct 2023 14:22:11 +0000 (10:22 -0400)
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>
board/starfive/visionfive2/visionfive2-i2c-eeprom.c

index fc0d981db222189331e82f44f3653cee91f08ad2..8d8c96516e93303b04b5012e920ed8976beae648 100644 (file)
@@ -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");
 }