I think that implementing a GPIO interface is a must-have. And I also think that your proposal is awesome. I work with GPIOs a lot, and I hate not doing it in a cross-platform way.
I generally agree with your proposal but I see some missing behaviours. Configuration that should be done on GPIOs. - GPIO direction (input/output) - GPIO modes (standard CMOS / open drain). - GPIO interruption generation (by level or edge, high, low, raising, falling) The GPIOs requesting and numbering should be done by specifying the chip, the port and the pin. We should be able to manipulate easily a GPIO from one of 3 I2C chips and another one from our microprocessor. We should be able to change several pins on the same port simultaneously (if the driver of the port allows it). Maybe, all the operations should be done by port (and not by pin), so that we can change several ports simultaneously. We should be able to register several pins of a port, and write and read from the port. I'd like some comments about these features. -- Asier Llano Palacios <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

