public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* GPIO active high/low handling on embedded devices
@ 2008-09-09  8:48 niels
  0 siblings, 0 replies; only message in thread
From: niels @ 2008-09-09  8:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: niels

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-09  9:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-09  8:48 GPIO active high/low handling on embedded devices niels

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox