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>
Showing
- arch/arm/mach-omap1/gpio15xx.c 14 additions, 0 deletionsarch/arm/mach-omap1/gpio15xx.c
- arch/arm/mach-omap1/gpio16xx.c 19 additions, 0 deletionsarch/arm/mach-omap1/gpio16xx.c
- arch/arm/mach-omap1/gpio7xx.c 19 additions, 0 deletionsarch/arm/mach-omap1/gpio7xx.c
- arch/arm/mach-omap2/gpio.c 16 additions, 0 deletionsarch/arm/mach-omap2/gpio.c
- arch/arm/plat-omap/include/plat/gpio.h 10 additions, 0 deletionsarch/arm/plat-omap/include/plat/gpio.h
- drivers/gpio/gpio-omap.c 43 additions, 200 deletionsdrivers/gpio/gpio-omap.c
Loading
Please register or sign in to comment