reading On-Chip GPIO from userspace

Submitted by Anonymous
on May 10, 2009 - 2:50pm

Hi folks,

i am successfully using gpio-keys on a custom AT91RM9200 board to react on On-Chip GPIO input events.
But if the system has just started, there is no way to figure out in which state these GPIO's are.
What i could do is enabling DEBUG_FS-Support and check /sys/kernel/debug/at91_gpio - but it seems a bit ugly to use a debug facility for production use.

Are there any suggestions to solve this problem?

Best Regards,
Tobias Simon