AnsweredAssumed Answered

OCOTP_SW_STICKY modification

Question asked by Kazuma Sasaki on Oct 1, 2018
Latest reply on Oct 9, 2018 by Kazuma Sasaki

I would like to set the FIELD_RETURN_LOCK bit at OCOTP_SW_STICKY register.

When I set the FIELD_RETURN_LOCK in U-BOOT phase, it is able to set to 1.

But, when I set the FIELD_RETURN_LOCK in Linux phase, it is not able to set to 1.

Why I am not able to write the OCOTP_SW_STICKY register at linux phase?

 

<My environment>

BSP version = L4.1.15_2.0.0_ga

Board = SABRE-AI

 

<My test result>

(1) case of U-BOOT

=> md.l 0x21bc050 1
021bc050: 00000018                               ....
=> mw.l 0x21bc050 0x00000004
=> md.l 0x21bc050 1
021bc050: 0000001c                               ....

 

(2) case of Linux

root@imx6qdlsolo:~# /unit_tests/memtool -32 0x21bc050 1
Reading 0x1 count starting at address 0x021BC050

0x021BC050:  00000018

 

root@imx6qdlsolo:~# /unit_tests/memtool -32 0x21bc050=0x00000004
Writing 32-bit value 0x4 to address 0x021BC050

 

root@imx6qdlsolo:~# /unit_tests/memtool -32 0x21bc050 1
Reading 0x1 count starting at address 0x021BC050

0x021BC050:  00000018

 

Best Regards,

Kazuma Sasaki.

Outcomes