diff options
author | Rabin Vincent <rabin@rab.in> | 2015-07-22 16:05:18 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-07-27 16:01:05 +0300 |
commit | 91492a44b998cf762150de8f1b40bda1902e8ea7 (patch) | |
tree | 31ca1c400a6e8d0921125fbe20b156eb35db25de /include/linux/basic_mmio_gpio.h | |
parent | 1296fba1a397b173d45534885a0934a7c005d7e3 (diff) | |
download | linux-91492a44b998cf762150de8f1b40bda1902e8ea7.tar.xz |
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.h | 1 |
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 */ |