]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
beagle: two more GPIOs
authorDavid Brownell <dbrownell@users.sourceforge.net>
Mon, 6 Oct 2008 20:17:35 +0000 (13:17 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 7 Oct 2008 08:04:47 +0000 (11:04 +0300)
commit85c0074e097432263d4ad5bba44b9026aa7bda4b
treeaac8d9f8d8ccd184558feb872cbf71fd130e662f
parentd4f127fe2c86f71350b23e518a6a888a079ba879
beagle: two more GPIOs

Request two more GPIOs on Beagle:  MMC write protect, DVI enable.

Also define the first OMAP3 GPIO mux config symbols, with a new
naming convention.  Examples:

  - GPIO42 is bidirectional, and uses external pull up/down (if any);
  - GPIO42_UP is bidirectional, with an internal pullup;
  - GPIO42_DOWN is bidirectional, with an internal pulldown.
  - GPIO42_OUT is output-only, and needs no pullup or pulldown.

All of those would be fully functional through the standard GPIO
interface as well as the legacy OMAP-only one, except GPIO42_OUT
which won't let you read the actual pin value after setting it.

There's no special off-mode support for these particular pins;
on Beagle they have external pullups or pulldowns.

(OMAP2 can use this naming convention too, except that since it
has no input-enable the "_OUT" convention can't be used there.)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-omap3beagle.c
arch/arm/mach-omap2/mux.c
arch/arm/plat-omap/include/mach/mux.h