nomadik-gpio: allow sleep mode dir/pull to differ from normal mode
commitdacdc96cd33dee876c704aaed78f41515abe8a81
authorRabin Vincent <rabin.vincent@stericsson.com>
Fri, 3 Dec 2010 15:05:37 +0000 (3 20:35 +0530)
committerLinus Walleij <linus.walleij@stericsson.com>
Wed, 8 Dec 2010 12:14:52 +0000 (8 13:14 +0100)
treed7e3b08e16dbf4eacca1415b0ff88d593ce28763
parentedaa86a4142474c99e4741efb6a916067978a1ee
nomadik-gpio: allow sleep mode dir/pull to differ from normal mode

In the nomadik GPIO pin configuration, allow the sleep mode direction
and pull configurations to differ from the ones for the normal state.
PIN_SLPM_PULL_*, PIN_SLPM_INPUT, PIN_SLPM_OUTPUT* macros are provided
for this.

Since the hardware does not allow seperate configurations for sleep mode
and normal mode, this is implemented by having software remux the
configurations as necessary.

Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
arch/arm/plat-nomadik/gpio.c
arch/arm/plat-nomadik/include/plat/pincfg.h