summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2011-03-16 15:25:23 +0530
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 15:15:42 +0200
commit7ede2921aa06de38ebc133cdea9cbee7df02ab80 (patch)
treed78bebceb9d2072231d5d8a7c38676ecfb72771f /include
parent3b9ee81415a5049b63b2118a56045b7932e0380d (diff)
gpio/nomadik: disable clocks when unused
The GPIO clock is required for register access and interrupt detection. When interrupt detection is not required on any of the pin in a block, the block's clock can be disabled when the registers are not being accessed. Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-by: Rickard Andersson <rickard.andersson@stericsson.com> Reviewed-by: Jonas Aberg <jonas.aberg@stericsson.com> [Adjust for new IRQ chip core code, use only local functions] Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/gpio/nomadik.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/gpio/nomadik.h b/include/linux/gpio/nomadik.h
index 0cfe96ece47..cc956d1eb81 100644
--- a/include/linux/gpio/nomadik.h
+++ b/include/linux/gpio/nomadik.h
@@ -66,6 +66,9 @@ extern int nmk_gpio_get_mode(int gpio);
extern void nmk_gpio_wakeups_suspend(void);
extern void nmk_gpio_wakeups_resume(void);
+extern void nmk_gpio_clocks_enable(void);
+extern void nmk_gpio_clocks_disable(void);
+
extern void nmk_gpio_read_pull(int gpio_bank, u32 *pull_up);
/*