Issues About Reading Some Values in Some Address

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

Issues About Reading Some Values in Some Address

332 Views
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 ~

Labels (3)
0 Kudos
1 Reply

259 Views
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 Kudos