How to access OTP registers from kernel?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to access OTP registers from kernel?

跳至解决方案
1,578 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,383 次查看
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

在原帖中查看解决方案

1 回复
1,384 次查看
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