Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/decoders.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 5 additions & 2 deletions src/hal/hisi/hal_hisi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/hal/hisi/hal_hisi_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Loading