From: "Tim Sander" <tim.sander@hbm.com>
To: "Eric Bénard" <eric@eukrea.com>
Cc: barebox@lists.infradead.org
Subject: Re: GPIO Support on pcm043
Date: Fri, 20 May 2011 15:30:19 +0200 [thread overview]
Message-ID: <201105201530.20237.tim.sander@hbm.com> (raw)
In-Reply-To: <4DD66946.4050906@eukrea.com>
Hi Eric
Thanks for your answer
> > Is there some obvious error on my side or is there no gpio
> > support for pcm043? At least there seems to be support for
> > the gpio ports on imx?
> > Any hints?
>
> you first need to configure the mux of the pins to GPIO mode, then you can
> use them as gpio.
After tripping into that trap multiple times, i've already checked that, but
forgot to mention it:
static struct pad_desc pcm043_pads[] = {
...
MX35_PAD_D3_CLS__GPIO1_4,
MX35_PAD_D3_SPL__GPIO1_5,
...
These should be the gpio nrs 4 and 5 which means that
gpio_set_direction 4 1
or
gpio_set_direction 4 0
should light up the led.
The led is working under linux so it's some problem with the gpio setup.
Thanks
Tim
Hottinger Baldwin Messtechnik GmbH, Im Tiefen See 45, 64293 Darmstadt, Germany | www.hbm.com
Registered as GmbH (German limited liability corporation) in the commercial register at the local court of Darmstadt, HRB 1147
Company domiciled in Darmstadt | CEO: Andreas Huellhorst | Chairman of the board: James Charles Webster
Als Gesellschaft mit beschraenkter Haftung eingetragen im Handelsregister des Amtsgerichts Darmstadt unter HRB 1147
Sitz der Gesellschaft: Darmstadt | Geschaeftsfuehrung: Andreas Huellhorst | Aufsichtsratsvorsitzender: James Charles Webster
The information in this email is confidential. It is intended solely for the addressee. If you are not the intended recipient, please let me know and delete this email.
Die in dieser E-Mail enthaltene Information ist vertraulich und lediglich für den Empfaenger bestimmt. Sollten Sie nicht der eigentliche Empfaenger sein, informieren Sie mich bitte kurz und loeschen diese E-Mail.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2011-05-20 13:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-20 12:07 Tim Sander
2011-05-20 13:14 ` Eric Bénard
2011-05-20 13:30 ` Tim Sander [this message]
2011-05-20 13:34 ` Eric Bénard
2011-05-20 14:16 ` Eric Bénard
2011-05-23 7:12 ` Sascha Hauer
2011-05-23 10:20 ` Tim Sander
2011-05-23 7:06 ` Sascha Hauer
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=201105201530.20237.tim.sander@hbm.com \
--to=tim.sander@hbm.com \
--cc=barebox@lists.infradead.org \
--cc=eric@eukrea.com \
/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