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.

Problem of using mmap() to map GPIO registers

Other Parts Discussed in Thread: 66AK2E05

Hi,

I am using 66AK2E05,and try to map the GPIO registers to user space.

According to the related Docs,I get the information below:

So I try to map  0x0260BF00 + 0x0010 for the GPIO Direction Register,

Here is how I do it:

But this is what I got while running it:

If I try to map aemif@30000000,no error occurs.

Any help on this will be appreciated!

Regards,

kevin