public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: niels@langendorff.nl
To: <linux-kernel@vger.kernel.org>
Cc: <niels@langendorff.nl>
Subject: GPIO active high/low handling on embedded devices
Date: Tue, 9 Sep 2008 10:48:50 +0200	[thread overview]
Message-ID: <11947.1220950130@langendorff.nl> (raw)

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



                 reply	other threads:[~2008-09-09  9:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11947.1220950130@langendorff.nl \
    --to=niels@langendorff.nl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox