OMAP3: GPIO: Enable debounce clock only when debounce is enabled v3.
authorJouni Hogander <jouni.hogander@nokia.com>
Thu, 25 Sep 2008 12:35:47 +0000 (15:35 +0300)
committerTony Lindgren <tony@atomide.com>
Thu, 25 Sep 2008 12:37:44 +0000 (15:37 +0300)
commitb59bedb5002866d7c303cbbdea234147a376e1d4
tree5a4b5fa56e3b53e8173aa84dc0f633e69dc934dc
parent4852f0de143aa60d632168d90685003d415d2c9c
OMAP3: GPIO: Enable debounce clock only when debounce is enabled v3.

This patch changes gpio "driver" to enable debounce clock for
gpio-bank only when debounce is enabled for some gpio in that bank.

Gpio functional clocks are also renamed in clock tree, gpioX_fck ->
gpioX_dbck.

This patch triggers problem with gpio wake-up and Omap3. Gpios in PER
domain aren't capable to generate wake-up if PER domain is in sleep
state. For this iopad wake-up should be used and needed pad
configuration should be done. Enabling iopad wake-up for gpio pads is
left for bootloader or omap mux configuration in kernel.

Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock34xx.h
arch/arm/plat-omap/gpio.c