aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_gpio.h
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2017-05-23 15:47:29 +0100
committerLinus Walleij <linus.walleij@linaro.org>2017-05-29 11:07:55 +0200
commit05f479bf7d239f01ff6546f2bdeb14ad0fe65601 (patch)
tree01007d9e5d3d3093d50cb01a1c715c142c63d4d1 /include/linux/of_gpio.h
parentgpio: of: Reflect decoupling of open collector and active low/high (diff)
downloadlinux-dev-05f479bf7d239f01ff6546f2bdeb14ad0fe65601.tar.xz
linux-dev-05f479bf7d239f01ff6546f2bdeb14ad0fe65601.zip
gpio: Add new flags to control sleep status of GPIOs
Add new flags to allow users to specify that they are not concerned with the status of GPIOs whilst in a sleep/low power state. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/of_gpio.h')
-rw-r--r--include/linux/of_gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/of_gpio.h b/include/linux/of_gpio.h
index 1e089d5a182b..ca10f43564de 100644
--- a/include/linux/of_gpio.h
+++ b/include/linux/of_gpio.h
@@ -31,6 +31,7 @@ enum of_gpio_flags {
OF_GPIO_ACTIVE_LOW = 0x1,
OF_GPIO_SINGLE_ENDED = 0x2,
OF_GPIO_OPEN_DRAIN = 0x4,
+ OF_GPIO_SLEEP_MAY_LOOSE_VALUE = 0x8,
};
#ifdef CONFIG_OF_GPIO