GPIO Support on pcm043

Eric Bénard eric at eukrea.com
Fri May 20 10:16:53 EDT 2011


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




More information about the barebox mailing list