IMX6UL: /sys/fsl_otp/HW_OCOTP_LOCK is not found in 5.4 kernel

cancel
Showing results for 
Search instead for 
Did you mean: 

IMX6UL: /sys/fsl_otp/HW_OCOTP_LOCK is not found in 5.4 kernel

131 Views
Contributor III

Hi,

I am migrating from 4.1.x (Jethro) kernel to 5.4 (Zeus) and noticed that CONFIG_FSL_OTP has been removed.

Is there any way to read these OCOTP registers to find out whether it is fused or not?

Labels (1)
Tags (1)
2 Replies

68 Views
NXP TechSupport
NXP TechSupport

Hello,

 

Unfortunately OTP driver is not supported anymore, it was moved to NVMEM framework.

imx-ocotp.c\nvmem\drivers - linux-imx - i.MX Linux kernel 

 

Hope this helps,

Best regards,

Aldo.

0 Kudos

68 Views
Contributor III

Hi Aldo,

Thanks for the information!

I am able to read the OCOTP registers through the nvmem interface.

$ hexdump ./sys/bus/platform/drivers/imx_ocotp/21bc000.oco

l/imx-ocotp0/nvmem

0000000 c04f 0032 6f41 ea9b 81d4 4732 0000 7032

0000010 0002 0241 0000 0000 004a 0018 0000 0000

0000020 0080 0000 0000 0000 00ba 0000 0000 0000

0000030 0000 0000 0000 0000 0069 5845 0000 0000

0000040 bada bada bada bada bada bada bada bada

*

0000060 687c 4869 8c6d da7e e74a 08f5 782f 0319

0000070 2e6d bab3 c759 050f 6f6c 2fd2 911f 4b7a

0000080 bada bada bada bada 0000 0000 0000 0000

0000090 0000 0000 bada bada 0000 0000 0000 0000

00000a0 0000 0000 0000 0000 0000 0000 0000 0000

00000b0 0000 0000 0040 0000 0000 0000 0000 0000

00000c0 0000 0000 0000 0000 0000 0000 0000 0000

*

0000200

$