PeterChan

Reading and writing OCOTP registers

Discussion created by PeterChan Employee on Jul 11, 2012
Latest reply on Jul 20, 2012 by PeterChan

Some of you may know that the BSP has a On-Chip OTP Memory driver to facilitate the OCOTP registers access. Here are the steps to enable it.

 

In LTIB, enable this configuration

Device Drivers

---> Character devices

     ---> Freescale On-Chip OTP Memory Support

Or

define “CONFIG_FSL_OTP” in your configuration file.

Compile the new kernel and after boot up, all OCOTP registers will be exposed at the "/sys/fsl_otp" directory. You can run the 'cat' command to read these registers and even echo a new value to these registers. BEWARE that they are One Time Programming only, meaning once written, these values can never be re-written again.

 

Cheers : )

Outcomes