For direct memory access Linux provides special node /dev/mem, which is used
by such tools as devmem. Really in our BSP there is the similar utility memtool
in /unit_tests directory. Basically You may look at memtool sources. Note, accesses
to non-supported address regions (hardcoded in /dev/mem driver) may cause system
issues.
Supported registers may be shown using the next command
$ /unit_tests/memtool .
or
$ /unit_tests/memtool *
For help
$ /unit_tests/memtool
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------