summaryrefslogtreecommitdiff
path: root/include/linux/basic_mmio_gpio.h
diff options
context:
space:
mode:
authorRabin Vincent <rabin@rab.in>2015-07-22 15:05:18 +0200
committerLinus Walleij <linus.walleij@linaro.org>2015-07-27 15:01:05 +0200
commit91492a44b998cf762150de8f1b40bda1902e8ea7 (patch)
tree31ca1c400a6e8d0921125fbe20b156eb35db25de /include/linux/basic_mmio_gpio.h
parent1296fba1a397b173d45534885a0934a7c005d7e3 (diff)
gpio: generic: support input-only chips
Allow chips to indicates that they are input-only and thus cannot set the output value. This will be used by the gpio-etraxfs driver. Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/basic_mmio_gpio.h')
-rw-r--r--include/linux/basic_mmio_gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/basic_mmio_gpio.h b/include/linux/basic_mmio_gpio.h
index 14eea946e640..ed3768f4ecc7 100644
--- a/include/linux/basic_mmio_gpio.h
+++ b/include/linux/basic_mmio_gpio.h
@@ -75,5 +75,6 @@ int bgpio_init(struct bgpio_chip *bgc, struct device *dev,
#define BGPIOF_UNREADABLE_REG_DIR BIT(2) /* reg_dir is unreadable */
#define BGPIOF_BIG_ENDIAN_BYTE_ORDER BIT(3)
#define BGPIOF_READ_OUTPUT_REG_SET BIT(4) /* reg_set stores output value */
+#define BGPIOF_NO_OUTPUT BIT(5) /* only input */
#endif /* __BASIC_MMIO_GPIO_H */