dect
/
linux-2.6
Archived
13
0
Fork 0

plat-nomadik: set altfunc to GPIO when enabling the sleep config

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Rabin Vincent 2010-11-25 11:38:27 +05:30 committed by Linus Walleij
parent 2c8bb0eba9
commit 3546d15c5c
1 changed files with 2 additions and 0 deletions

View File

@ -175,6 +175,8 @@ static void __nmk_config_pin(struct nmk_gpio_chip *nmk_chip, unsigned offset,
int slpm_output = PIN_SLPM_DIR(cfg);
int slpm_val = PIN_SLPM_VAL(cfg);
af = NMK_GPIO_ALT_GPIO;
/*
* The SLPM_* values are normal values + 1 to allow zero to
* mean "same as normal".