This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to read/write Davinci registers in a test utility?

Hi,

I am writing a test utility to read/write register values of DM365 by register address (e.g, 0x01C71E00 for VENC_VMOD), specially VPFE/VPBE registers and etc. I understand that user space application may not be able to do that so I can write a small driver in kernel space too to read/write register values and passing the values to user space utility.

However I see the Davinci registers are already mapped using function ioremap_nocache() in various linux drivers and "reserved" so I can not map them again and read/write using__raw_readl() or  __raw_writel() .

Anyone can advise how to do this? Thanks a lot.