diff --git a/src/decoders.c b/src/decoders.c index b615455..14ecca1 100644 --- a/src/decoders.c +++ b/src/decoders.c @@ -668,7 +668,7 @@ bool soc_has_analog_vi(void) { /* DVR dies ipctool names without a generation: their kernel and * gpioi2c buses can still be read. */ static const char *const dvr[] = {"3521V100", "3521DV100", "3520DV400", - "3521AV100"}; + "3521AV100", "3531AV100"}; for (size_t i = 0; i < ARRCNT(dvr); i++) if (strstr(chip_name, dvr[i])) return true; diff --git a/src/hal/hisi/hal_hisi.c b/src/hal/hisi/hal_hisi.c index 6cbf034..cf99fa8 100644 --- a/src/hal/hisi/hal_hisi.c +++ b/src/hal/hisi/hal_hisi.c @@ -1292,12 +1292,15 @@ static const char *get_hisi_chip_id(uint32_t family_id, uint8_t scsysid0) { return "3521V100"; /* The DVR/NVR dies below have no chip_generation: ipctool has no pad, * sensor or ISP tables for them, so only the name is reported. The IDs - * are the vendor U-Boot's (_HI3521A_V100, _HI3535_V100, _HI3536_V100 in - * the Hi3521A, Hi3535 and Hi3536 SDKs). */ + * are the vendor U-Boot's (_HI3521A_V100, _HI3531A_V100, _HI3535_V100 and + * _HI3536_V100 in the Hi3521A, Hi3535 and Hi3536 SDKs). */ case 0x3521A100: /* Hi3520DV300 is the same die with the same ID: the vendor tells * the two apart by build, not at run time. */ return "3521AV100"; + case 0x3531A100: + /* Hi3531A: dual Cortex-A9, the Hi3521A's bigger sibling. */ + return "3531AV100"; case 0x35350100: return "3535V100"; case 0x35360100: diff --git a/src/hal/hisi/hal_hisi_test.c b/src/hal/hisi/hal_hisi_test.c index 16cf384..a1c772e 100644 --- a/src/hal/hisi/hal_hisi_test.c +++ b/src/hal/hisi/hal_hisi_test.c @@ -562,6 +562,7 @@ int main(void) { /* The DVR/NVR dies named without a generation: no register is read. */ CHECK(strcmp(get_hisi_chip_id(0x3521A100, 0), "3521AV100") == 0); + CHECK(strcmp(get_hisi_chip_id(0x3531A100, 0), "3531AV100") == 0); CHECK(strcmp(get_hisi_chip_id(0x35350100, 0), "3535V100") == 0); CHECK(strcmp(get_hisi_chip_id(0x35360100, 0), "3536V100") == 0);