GPIO active high/low handling on embedded devices

Previous thread: [PATCH 1/2][RESEND] ext3: add an option to control error handling on file data by Hidehiro Kawai on Tuesday, September 9, 2008 - 4:49 am. (2 messages)

Next thread: undefined reference to `v4l_printk_ioctl' [Was: mmotm 2008-09-08-18-32 uploaded] by Jiri Slaby on Tuesday, September 9, 2008 - 5:26 am. (1 message)
To: <linux-kernel@...>
Cc: <niels@...>
Date: Tuesday, September 9, 2008 - 4:48 am

Hi,

I missing some functionality in the current GPIO interface which I am using in an
embedded environment.
It is not possible to specify if an output is low or high active on arch level.

IOW I want to activate or deactivate (on driver level) an output without having
to know if an output is high or low active, which should be specified on arch level.

Currently I created a structure with the gpio number and a boolean is_inverted,
and I added two functions called gpio_activate and gpio_deactivate, these
functions allow me to control the hardware independent of the low level
implementation, for example gpio_activate(RESET).

My question is if there is already such an solution or will the GPIO interface
support this functionality in the future?

Best regards,

Niels Langendorff

--

Previous thread: [PATCH 1/2][RESEND] ext3: add an option to control error handling on file data by Hidehiro Kawai on Tuesday, September 9, 2008 - 4:49 am. (2 messages)

Next thread: undefined reference to `v4l_printk_ioctl' [Was: mmotm 2008-09-08-18-32 uploaded] by Jiri Slaby on Tuesday, September 9, 2008 - 5:26 am. (1 message)