Re: GPIO Support on pcm043

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 20/05/2011 15:34, Eric Bénard wrote:
On 20/05/2011 15:30, Tim Sander wrote:
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.

if the led is wired on gpio1_5 it should.

I mean 1_4 here

Eric


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux