GPIO Support on pcm043

Eric Bénard eric at eukrea.com
Fri May 20 09:34:01 EDT 2011


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.

Eric



More information about the barebox mailing list