How to access OTP registers from kernel?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to access OTP registers from kernel?

Jump to solution
849 Views
petarbajic
Contributor III

On IMX6 SabreSD, OTP fuse driver provides reading from sys fs files in /sys/fsl-otp/ from user space.

I want to read those data from kernel. I can change fsl_otp.c driver to export read functions to other kernel modules, or have my module access sys fs files in user space. Which option would you recommend? Is there a third way to access those data?

Petar

Labels (1)
0 Kudos
1 Solution
654 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I would export the functions you need from the opt driver to your code in the kernel. I do not know if there is a better way to achieve what you need.

/Alejandro

View solution in original post

1 Reply
655 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I would export the functions you need from the opt driver to your code in the kernel. I do not know if there is a better way to achieve what you need.

/Alejandro