aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/gpio/driver.h3
-rw-r--r--include/linux/gpio/machine.h2
-rw-r--r--include/linux/of_gpio.h1
3 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index 393582867afd..af20369ec8e7 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -213,6 +213,9 @@ bool gpiochip_line_is_irq(struct gpio_chip *chip, unsigned int offset);
213bool gpiochip_line_is_open_drain(struct gpio_chip *chip, unsigned int offset); 213bool gpiochip_line_is_open_drain(struct gpio_chip *chip, unsigned int offset);
214bool gpiochip_line_is_open_source(struct gpio_chip *chip, unsigned int offset); 214bool gpiochip_line_is_open_source(struct gpio_chip *chip, unsigned int offset);
215 215
216/* Sleep persistence inquiry for drivers */
217bool gpiochip_line_is_persistent(struct gpio_chip *chip, unsigned int offset);
218
216/* get driver data */ 219/* get driver data */
217void *gpiochip_get_data(struct gpio_chip *chip); 220void *gpiochip_get_data(struct gpio_chip *chip);
218 221
diff --git a/include/linux/gpio/machine.h b/include/linux/gpio/machine.h
index c0d712d22b07..13adadf53c09 100644
--- a/include/linux/gpio/machine.h
+++ b/include/linux/gpio/machine.h
@@ -9,6 +9,8 @@ enum gpio_lookup_flags {
9 GPIO_ACTIVE_LOW = (1 << 0), 9 GPIO_ACTIVE_LOW = (1 << 0),
10 GPIO_OPEN_DRAIN = (1 << 1), 10 GPIO_OPEN_DRAIN = (1 << 1),
11 GPIO_OPEN_SOURCE = (1 << 2), 11 GPIO_OPEN_SOURCE = (1 << 2),
12 GPIO_SLEEP_MAINTAIN_VALUE = (0 << 3),
13 GPIO_SLEEP_MAY_LOOSE_VALUE = (1 << 3),
12}; 14};
13 15
14/** 16/**
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 {
31 OF_GPIO_ACTIVE_LOW = 0x1, 31 OF_GPIO_ACTIVE_LOW = 0x1,
32 OF_GPIO_SINGLE_ENDED = 0x2, 32 OF_GPIO_SINGLE_ENDED = 0x2,
33 OF_GPIO_OPEN_DRAIN = 0x4, 33 OF_GPIO_OPEN_DRAIN = 0x4,
34 OF_GPIO_SLEEP_MAY_LOOSE_VALUE = 0x8,
34}; 35};
35 36
36#ifdef CONFIG_OF_GPIO 37#ifdef CONFIG_OF_GPIO