bdk: fuse: simplify idle wait

This commit is contained in:
CTCaer
2023-12-25 03:47:26 +02:00
parent 504659a39b
commit 87c50732c0
2 changed files with 23 additions and 5 deletions

View File

@@ -167,11 +167,8 @@ int fuse_set_sbk()
void fuse_wait_idle()
{
u32 ctrl;
do
{
ctrl = FUSE(FUSE_CTRL);
} while (((ctrl >> 16) & 0x1f) != 4);
while (((FUSE(FUSE_CTRL) >> 16) & 0x1F) != FUSE_STATUS_IDLE)
;
}
u32 fuse_read(u32 addr)