plat-nomadik: set altfunc to GPIO when enabling the sleep config
authorRabin Vincent <rabin.vincent@stericsson.com>
Thu, 25 Nov 2010 06:08:27 +0000 (11:38 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Mar 2011 13:05:15 +0000 (14:05 +0100)
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/plat-nomadik/gpio.c

index cc9de59..bf299cf 100644 (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".