soc: nrf5x: Disconnect GPIO input buffer when configured as output

This saves power.

Change-Id: Ie30bd3bffe89bc777d588fca56014634e03c0fe8
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
This commit is contained in:
Amit Kucheria 2016-07-19 02:07:39 +05:30 committed by Andrew Boie
commit 0017b60fbb

View file

@ -139,7 +139,7 @@ static int gpio_nrf5_config(struct device *dev,
gpio->PIN_CNF[pin] = GPIO_SENSE_DISABLE |
GPIO_DRIVE_S0S1 |
pull |
GPIO_INPUT_CONNECT |
GPIO_INPUT_DISCONNECT |
GPIO_DIR_OUTPUT;
} else {
/* Config as input */