On 18.02.2008 02:45, joe@smittys.pointclark.net wrote:
Quoting Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net:
On 16.02.2008 17:57, joe@smittys.pointclark.net wrote:
Hello, How do I dump the GPIO I/O Registers in linux. I need to dump the GPIO's from the southbridge. Anyone?
Depends on the southbridge. It could be directly/indirectly memory-mapped or port-based. Simply tell us what the data sheet says about reading the GPIO state and we can help.
The southbridge is the Intel 82801DB ICH4. I don't see anything in the datasheet about reading the GPIO state....just says:
The control for the general purpose I/O signals is handled through a separate 64-byte I/O space.
I can find out the base offset address from the LPC pci configuration registers, but how do I dump it into human readable form??
Is this a memory address or I/O port number? Once you know that, you can modify existing utilities for your purpose. If you have no idea, tell us the values and we can guess. Having /proc/ioports and /proc/iomem contents would help guessing.
Regards, Carl-Daniel
Thanks - Joe