gpio/omap: consolidate direction, input, output, remove #ifdefs
commitfa87931acb8203a1f40a3c637863ad238f70cd40
authorKevin Hilman <khilman@ti.com>
Wed, 20 Apr 2011 23:31:23 +0000 (20 16:31 -0700)
committerKevin Hilman <khilman@ti.com>
Thu, 16 Jun 2011 18:13:42 +0000 (16 11:13 -0700)
treefd79e56fb9819bbb1096c9d3904f0ba04bec832a
parenta8be8dafd00e3ccf4f85e2f30babf42be5076324
gpio/omap: consolidate direction, input, output, remove #ifdefs

Add register offset fields to GPIO platform_data for registers.

This patch adds registers that control direction, input and output
data.  Using these register offsets in the common driver allows
removal of #ifdefs and greatly improves readability.

Also create dedicated data out functions: one for banks with dedicated
set/clear registers, and another for banks with a single mask
register.

Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap1/gpio15xx.c
arch/arm/mach-omap1/gpio16xx.c
arch/arm/mach-omap1/gpio7xx.c
arch/arm/mach-omap2/gpio.c
arch/arm/plat-omap/include/plat/gpio.h
drivers/gpio/gpio-omap.c