From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 2.26.mail-out.ovh.net ([178.33.107.8] helo=26.mail-out.ovh.net) by canuck.infradead.org with smtp (Exim 4.76 #1 (Red Hat Linux)) id 1QNQWv-00083l-M4 for barebox@lists.infradead.org; Fri, 20 May 2011 14:18:18 +0000 Message-ID: <4DD677D5.6020300@eukrea.com> Date: Fri, 20 May 2011 16:16:53 +0200 From: =?ISO-8859-1?Q?Eric_B=E9nard?= MIME-Version: 1.0 References: <201105201407.08429.tim.sander@hbm.com> <4DD66946.4050906@eukrea.com> <201105201530.20237.tim.sander@hbm.com> <4DD66DC9.1090304@eukrea.com> In-Reply-To: <4DD66DC9.1090304@eukrea.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: GPIO Support on pcm043 To: barebox@lists.infradead.org Hi, On 20/05/2011 15:34, Eric B=E9nard 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[] =3D { >> ... >> 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@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox