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
---> Character devices
---> Freescale On-Chip OTP Memory Support
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 : )