GPIO Support on pcm043

Sascha Hauer s.hauer at pengutronix.de
Mon May 23 03:12:56 EDT 2011


On Fri, May 20, 2011 at 03:30:19PM +0200, 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,
> 	...

Have you checked that you chose the correct iomux setup? These
particular pins can be routed to three different pads each:

#define MX35_PAD_CAPTURE__GPIO1_4	IOMUX_PAD(0x328, 0x004, 5, 0x850, 0, NO_PAD_CTRL)
#define MX35_PAD_SCKR__GPIO1_4		IOMUX_PAD(0x584, 0x140, 5, 0x850, 1, NO_PAD_CTRL)
#define MX35_PAD_D3_CLS__GPIO1_4	IOMUX_PAD(0x68c, 0x228, 5, 0x850, 2, NO_PAD_CTRL)
#define MX35_PAD_COMPARE__GPIO1_5	IOMUX_PAD(0x32c, 0x008, 5, 0x854, 0, NO_PAD_CTRL)
#define MX35_PAD_FSR__GPIO1_5		IOMUX_PAD(0x588, 0x144, 5, 0x854, 1, NO_PAD_CTRL)
#define MX35_PAD_D3_SPL__GPIO1_5	IOMUX_PAD(0x690, 0x22c, 5, 0x854, 2, NO_PAD_CTRL)

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list