> 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.)

I did this for a short time and very quickly removed it.

The case is that the i.MX21 has 6 GPIO blocks with 32 bits each. 
However, not all 192 pins are actually GPIOs, but most of them 
have very normal functions, e.g. LCD output.

So many of those pins are driven by internal hardware blocks, 
e.g. PCMCIA interface, LCD controller, CSPI, I2C, USB host etc.

But even when a pin is used not as a GPIO, but by the controller, 
the output/input of the physical pin is reflected in the GPIO 
state- and level registers. You can imagine how often this 
changes for, say, the LCD panel line- and frame-clock signals. 
So an "watch GPIOS" command emits almost only uninteresting 
stuff and I thougth it much wiser to individually add those 
registers to the watch that are really of interest.
_______________________________________________
Haret mailing list
[email protected]
https://handhelds.org/mailman/listinfo/haret

Reply via email to