]> git.baikalelectronics.ru Git - kernel.git/commit
gpio/nomadik: disable clocks when unused
authorRabin Vincent <rabin.vincent@stericsson.com>
Tue, 20 Sep 2011 08:50:03 +0000 (10:50 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 20 Sep 2011 17:31:58 +0000 (11:31 -0600)
commit1017f97ab268fa8c32690a33b6c0c47f33254cc1
tree1a578a1965bd432a56542cc3d0500f3364395546
parentae7ce1f433e7554abda22b607f7f0f6fef33142a
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>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/arm/plat-nomadik/include/plat/gpio.h
drivers/gpio/gpio-nomadik.c