aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include
diff options
context:
space:
mode:
authorTarun Kanti DebBarma <tarun.kanti@ti.com>2011-08-30 05:35:44 -0400
committerTarun Kanti DebBarma <tarun.kanti@ti.com>2012-02-06 03:43:41 -0500
commit9ea14d8cbbf1c8fc941e8e8a12aa0a3edc5c336e (patch)
treee31c48539315249da6ee68b16452d1f5abf2e6cb /arch/arm/plat-omap/include
parent6ed87c5b66ca81996fae2dae6d1e702d66b9832b (diff)
gpio/omap: use level/edge detect reg offsets
By adding level and edge detection register offsets and then initializing them correctly according to OMAP versions during device registrations we can now remove lot of revision checks in these functions. Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com> Signed-off-by: Charulatha V <charu@ti.com> Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Reviewed-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/plat-omap/include')
-rw-r--r--arch/arm/plat-omap/include/plat/gpio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/gpio.h b/arch/arm/plat-omap/include/plat/gpio.h
index 2b54bca511d7..395b3c1e8ba4 100644
--- a/arch/arm/plat-omap/include/plat/gpio.h
+++ b/arch/arm/plat-omap/include/plat/gpio.h
@@ -190,6 +190,10 @@ struct omap_gpio_reg_offs {
190 u16 debounce_en; 190 u16 debounce_en;
191 u16 ctrl; 191 u16 ctrl;
192 u16 wkup_en; 192 u16 wkup_en;
193 u16 leveldetect0;
194 u16 leveldetect1;
195 u16 risingdetect;
196 u16 fallingdetect;
193 197
194 bool irqenable_inv; 198 bool irqenable_inv;
195}; 199};