On Mon, Jan 19, 2009 at 09:31:49AM +0100, Holger Schurig wrote: > > BTW, why doesn't the generic gpio watching mechanism work for > > the imx? > > I'm not sure if I understand you. > > "addlist GPIOS xxx" works. But it just shows when a signal level > has changed. "dump gpio" does way more, it also (partially) > decodes the state.
Okay - that makes sense. It would be nice if you could add all the registers used for gpios to the GPIOS variable in MachineIMX21::init. (Thus, a new user can just run "watch gpios" or "joinlist traces gpios" and not have to lookup the gpio registers.) > If you're more familiar with PXA255, then think about the GAFR > (GPIO Alternate Function Registers). They define if a processor > pin is a GPIO or a processor function pin. And if the latter, > which one. The "dump gpio" does something similar for the > i.MX21. On PXA, we add the gpio level, gpio direction, and gpio alt function registers to GPIOS (see src/mach/arch-pxa27x.cpp). It's not pretty, but it works. :-) Again, thanks for adding the "dump gpio" function - it looks like a great extension. My inquiry was only to see if something prevented "watch" and "wirq" from also being used. -Kevin _______________________________________________ Haret mailing list [email protected] https://handhelds.org/mailman/listinfo/haret
