linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johnny Hung <johnny.hacking@gmail.com>
To: Peter Korsgaard <jacmet@sunsite.dk>
Cc: linuxppc-dev@lists.ozlabs.org, linux-embedded@vger.kernel.org
Subject: Re: GPIO driver for MPC8313.
Date: Wed, 23 Sep 2009 18:52:24 +0800	[thread overview]
Message-ID: <cb9ecdfa0909230352w77a37f59h3c7f1e146121f9f6@mail.gmail.com> (raw)
In-Reply-To: <87y6o6rvvc.fsf@macbook.be.48ers.dk>

Thanks, got it. BTW, how to trigger GPIO level in user space
application? I also found arch/powerpc/platforms/52xx/mpc52xx_gpio.c
is a good example. Any reply is appreciate.

BRs, H. Johnny

2009/9/23 Peter Korsgaard <jacmet@sunsite.dk>:
>>>>>> "Johnny" == Johnny Hung <johnny.hacking@gmail.com> writes:
>
>  Johnny> Hi All:
>  Johnny>    Is there a alreday written GPIO dirver or example for
>  Johnny> MPC8313/similar ppc platform. It looks like many people need GPIO
>  Johnny> dirver to control LED, etc... I think is it possible to write a
>  Johnny> general gpio driver for all ppc platform and only need to modify gpio
>  Johnny> iomap information of dtb file. Please give me a advice. Thanks in
>  Johnny> advanced.
>
> Sure, it's arch/powerpc/sysdev/mpc8xxx_gpio.c, included since 2.6.28. To
> use it, simply enable CONFIG_MPC8xxx_GPIO and add a gpio-controller node
> to your dts, similar to how it's done in
> arch/powerpc/boot/dts/mpc837*_rdb.dts.
>
> See Documentation/powerpc/dts-bindings/fsl/8xxx_gpio.txt for details of
> the dts bindings.
>
> --
> Bye, Peter Korsgaard
>

  reply	other threads:[~2009-09-23 10:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-23  3:55 GPIO driver for MPC8313 Johnny Hung
2009-09-23  6:57 ` Peter Korsgaard
2009-09-23 10:52   ` Johnny Hung [this message]
2009-09-23 11:04     ` Peter Korsgaard
2009-09-23 15:20       ` Johnny Hung
2009-09-28  2:43         ` Johnny Hung
2009-09-28  5:16           ` Peter Korsgaard

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=cb9ecdfa0909230352w77a37f59h3c7f1e146121f9f6@mail.gmail.com \
    --to=johnny.hacking@gmail.com \
    --cc=jacmet@sunsite.dk \
    --cc=linux-embedded@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.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;
as well as URLs for NNTP newsgroup(s).