From ce6926c36ce512bcb122a8ab9f25c23814004500 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Tue, 8 Jun 2021 05:53:31 +0300 Subject: [PATCH] fuse: remove fuse counting, bit count will be used instead --- bdk/soc/fuse.c | 12 ------------ bdk/soc/fuse.h | 1 - 2 files changed, 13 deletions(-) diff --git a/bdk/soc/fuse.c b/bdk/soc/fuse.c index 0a37a4b..85fc137 100644 --- a/bdk/soc/fuse.c +++ b/bdk/soc/fuse.c @@ -121,18 +121,6 @@ u32 fuse_read_hw_type() return FUSE_NX_HW_TYPE_ICOSA; } -u8 fuse_count_burnt(u32 val) -{ - u8 burnt_fuses = 0; - for (u32 i = 0; i < 32; i++) - { - if ((val >> i) & 1) - burnt_fuses++; - } - - return burnt_fuses; -} - void fuse_wait_idle() { u32 ctrl; diff --git a/bdk/soc/fuse.h b/bdk/soc/fuse.h index 810efd6..38e0c16 100644 --- a/bdk/soc/fuse.h +++ b/bdk/soc/fuse.h @@ -97,7 +97,6 @@ u32 fuse_read_odm_keygen_rev(); u32 fuse_read_dramid(bool raw_id); u32 fuse_read_hw_state(); u32 fuse_read_hw_type(); -u8 fuse_count_burnt(u32 val); void fuse_wait_idle(); int fuse_read_ipatch(void (*ipatch)(u32 offset, u32 value)); int fuse_read_evp_thunk(u32 *iram_evp_thunks, u32 *iram_evp_thunks_len);