Skip to content

Commit

Permalink
Fix efuse support
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler committed Aug 24, 2024
1 parent f338168 commit 3a1ba2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mtkclient/Library/DA/xflash/extension/xflash.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ def patch(self):
daextdata[ufshcd_get_free_tag_ptr:ufshcd_get_free_tag_ptr + 4] = pack("<I", ufshcd_get_free_tag)
daextdata[ufshcd_queuecommand_ptr:ufshcd_queuecommand_ptr + 4] = pack("<I", ufshcd_queuecommand)
daextdata[ptr_g_ufs_hba_ptr:ptr_g_ufs_hba_ptr + 4] = pack("<I", g_ufs_hba)
daextdata[efuse_addr_ptr:efuse_addr_ptr+4]=pack("<I", efuse_addr)
if efuse_addr_ptr!=-1:
daextdata[efuse_addr_ptr:efuse_addr_ptr+4]=pack("<I", efuse_addr)

# print(hexlify(daextdata).decode('utf-8'))
# open("daext.bin","wb").write(daextdata)
Expand Down
3 changes: 2 additions & 1 deletion mtkclient/Library/DA/xml/extension/v6.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ def patch(self):
daextdata[ufshcd_get_free_tag_ptr:ufshcd_get_free_tag_ptr + 4] = pack("<I", ufshcd_get_free_tag)
daextdata[ufshcd_queuecommand_ptr:ufshcd_queuecommand_ptr + 4] = pack("<I", ufshcd_queuecommand)
daextdata[ptr_g_ufs_hba_ptr:ptr_g_ufs_hba_ptr + 4] = pack("<I", g_ufs_hba)
daextdata[efuse_addr_ptr:efuse_addr_ptr + 4] = pack("<I", efuse_addr)
if efuse_addr_ptr != -1:
daextdata[efuse_addr_ptr:efuse_addr_ptr + 4] = pack("<I", efuse_addr)

# print(hexlify(daextdata).decode('utf-8'))
# open("daext.bin","wb").write(daextdata)
Expand Down

0 comments on commit 3a1ba2c

Please sign in to comment.