<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Looking at the device tree for this board, it appears U-Boot remaps the<br>
IMMR registers to 0xe0000000. They are no longer accessible at<br>
0xff400000.<br>
<br>
I would recommend studying arch/powerpc/boot/dts/mpc8377_rdb.dts in the<br>
Linux source code. That describes the device layout on your board after<br>
U-Boot has run.<br>
<br>
A wonderful tool for testing devices from userspace is "busybox devmem".<br>
It allows you to poke any physical address with any value. The output of<br>
"busybox devmem --help" should get you started. As a quick example,<br>
"busybox devmem 0xe0000c00 w 0x1" will write the 32-bit value 0x1 to<br>
address 0xe0000c00.<br>
<br>
I would also recommend using the built-in Linux GPIO API. It works, you<br>
just need to figure out how to use it. It will be much easier to get<br>
your code upstream if you use the provided APIs.<br>
<br>
The Documentation/gpio.txt file should help you in understanding the<br>
in-kernel Linux GPIO API. I'm afraid I don't have much experience other<br>
than accessing it via sysfs from userspace.<br>
<font color="#888888"><br>
Ira<br>
</font></blockquote></div><br>Hi Ira,<br><br>Thanks for another great reply. Now I can also access gpio memory map registers.<br><br>Thanks and Regards,<br>Ravi Gupta<br>