Issues About Reading Some Values in Some Address

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

Issues About Reading Some Values in Some Address

725 次查看
tony_l_cai
Contributor III

Hi,all

     Now we are in Android 5.0 on MX6DL, Before this ,we can read somes values in some specific addr by readl(). But now I dont know how to access into some specific addr to read the values. Because I cannot find the file conaining the addr macros. So should we get the value by DTS? Can you help me?

     Thank you ~

标签 (3)
0 项奖励
回复
1 回复

652 次查看
igorpadykov
NXP Employee
NXP Employee

Hi tony

in mach-imx directory, mach-imx6q.c, cpu.c files one can find examples: readl_relaxed, __raw_read

https://www.kernel.org/doc/htmldocs/deviceiobook/accessing_the_device.html

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复