bdk: fuse: return array size with fuse_read_array

This commit is contained in:
CTCaer authored and NaGa committed 2026-03-27 09:57:23 +01:00
1 parent bb20eabea2
commit ffc0aa2c3d
2 files changed
+27 -25

No files matched your search

+3 -1
View File
@@ -217,13 +217,15 @@ u32 fuse_read(u32 addr)
return FUSE(FUSE_RDATA);
}
void fuse_read_array(u32 *words)
u32 fuse_read_array(u32 *words)
{
u32 array_size = (hw_get_chip_id() == GP_HIDREV_MAJOR_T210B01) ?
FUSE_ARRAY_WORDS_NUM_B01 : FUSE_ARRAY_WORDS_NUM;
for (u32 i = 0; i < array_size; i++)
words[i] = fuse_read(i);
return array_size;
}
static u32 _parity32_even(const u32 *words, u32 count)