diff options
author | Kent Gibson <warthog618@gmail.com> | 2019-11-05 10:04:25 +0800 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2019-11-12 16:30:30 +0100 |
commit | 2148ad7790ea4f1f0081e6404fbb776bdbc793bb (patch) | |
tree | 43deadf60dfe7760cbb917f5460d416cd3c43ed5 /include/uapi | |
parent | 7b479a8448c2e5ced36ca6a2d03178b920298ee5 (diff) | |
download | linux-stable-2148ad7790ea4f1f0081e6404fbb776bdbc793bb.tar.gz linux-stable-2148ad7790ea4f1f0081e6404fbb776bdbc793bb.tar.bz2 linux-stable-2148ad7790ea4f1f0081e6404fbb776bdbc793bb.zip |
gpiolib: add support for disabling line bias
Allow pull up/down bias to be disabled, allowing the line to float
or to be biased only by external circuitry.
Use case is for where the bias has been applied previously, either
by default or by the user, but that setting may conflict with the
current use of the line.
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/gpio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h index 39e6c7854d63..7cc21c3b0839 100644 --- a/include/uapi/linux/gpio.h +++ b/include/uapi/linux/gpio.h @@ -35,6 +35,7 @@ struct gpiochip_info { #define GPIOLINE_FLAG_OPEN_SOURCE (1UL << 4) #define GPIOLINE_FLAG_BIAS_PULL_UP (1UL << 5) #define GPIOLINE_FLAG_BIAS_PULL_DOWN (1UL << 6) +#define GPIOLINE_FLAG_BIAS_DISABLE (1UL << 7) /** * struct gpioline_info - Information about a certain GPIO line @@ -66,6 +67,7 @@ struct gpioline_info { #define GPIOHANDLE_REQUEST_OPEN_SOURCE (1UL << 4) #define GPIOHANDLE_REQUEST_BIAS_PULL_UP (1UL << 5) #define GPIOHANDLE_REQUEST_BIAS_PULL_DOWN (1UL << 6) +#define GPIOHANDLE_REQUEST_BIAS_DISABLE (1UL << 7) /** * struct gpiohandle_request - Information about a GPIO handle request |