How do I translate a fuse address into bank and word so I can read it with fuse read <bank> <word> [<cnt>] command from uboot? Is there a document explaining the conversion?
Thank you
Hi changbaoma,
Offset 0x430 or Fuse Address 0x430 is mapped to OCOTP_CFG2 register which is OTP Bank 0, word 3. You can check in section 35.5.14 of i.MX6UL Reference manual attached herewith.
This you can verify with the offset 0x400 or fuse address 0x400 which relates to OCOTP_LOCK register OTP Bank 0, word 0.
Hope this will clear the confusion.
Regards,
Shivani
Thank you very much, Shivani
I get it now. Fuse Address is the Offset address.
So Fuse Address 430h equl to Address: 21B_C000h base + 430h offset = 21B_C430h
Hi changbaoma,
Glad to know that your confusion is cleared.
So, if my post answers your question then please mark it as a Correct Answer to help other users accessing it easily.
Thanks,
Shivani
Hello Eugene Ivanov,
Here you can find a readme of the API:
https://gitlab.denx.de/u-boot/u-boot/blob/HEAD/doc/README.fuse
You do not mention which processor you are using, but you may find the OTP memory map on the Reference Manual of the processor. In there you can see which bank and world are tied to each configuration.
There is not a guide per se, but I hope this helps!
Regards,
Hi, gusarambula
it also confuse me, the link you give above is describe how to use fuse cmd in u-boot, but do not parse how do I translate a fuse address into bank and word.
eg. in Table 5-9. Fusemap Descriptions
Fuse Address | Fuses Name | Numbe r of Fuses | Fuses Function | Setting | Used by |
0x430[19:16] | SI_REV[3:0] | 4 | Silicon Revision number | SW | |
0x430[21:20] | TAMPER_PIN_DIS ABLE[1:0] | 2 | Disable ten tamper pins | 00 - enabled, TAMPER0-9 used as TAMPER detection pins. 01 - disabled, TAMPER2-4 and TAMPER7-9 used as GPIO. 10 - disabled, TAMPER0-1 and TAMPER5-6 used as GPIO. 11 - disabled, TAMPER0-9 used as GPIO. | SNVS |
and i don't know which bank and word is relate to Fuse Address 0x430?