v3hil: fix for JTAGID=0x89 devices

This commit is contained in:
Triss 2022-05-15 22:47:51 +02:00
parent b8ed9d7194
commit 15edaf3c84
1 changed files with 5 additions and 0 deletions

View File

@ -1175,6 +1175,11 @@ int v3hil_identify(struct v3hil *fet)
return -1;
} else {
dev_id_ptr = r32le(fet->hal.payload + 0);
if (dev_id_ptr == 0) { // welp sometimes it's this instead (JTAG ID == 0x89?)
dev_id_ptr = r32le(fet->hal.payload + 0);
}
id_data_addr = dev_id_ptr; // idk
}
} else {