PERFORCE change 107226 for review

Warner Losh imp at FreeBSD.org
Tue Oct 3 16:52:54 PDT 2006


http://perforce.freebsd.org/chv.cgi?CH=107226

Change 107226 by imp at imp_lighthouse on 2006/10/03 23:52:30

	Need to enable this pin for GPIO access.

Affected files ...

.. //depot/projects/arm/src/sys/arm/at91/at91_pio.c#20 edit

Differences ...

==== //depot/projects/arm/src/sys/arm/at91/at91_pio.c#20 (text+ko) ====

@@ -291,6 +291,7 @@
 	case GPIO_CFG:	/* Configure GPIO pins */
 		cfg = (struct gpio_cfg *)data;
 		if (cfg->cfgmask & GPIO_CFG_INPUT) {
+			WR4(sc, PIO_PER, cfg->iomask);
 			WR4(sc, PIO_OER, cfg->iomask & ~cfg->input);
 			WR4(sc, PIO_ODR, cfg->iomask & cfg->input);
 		}


More information about the p4-projects mailing list