diff options
Diffstat (limited to 'include/asm-generic/gpio.h')
-rw-r--r-- | include/asm-generic/gpio.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index 6de13d925e..fa9b80722e 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -222,6 +222,14 @@ int gpio_requestf(unsigned gpio, const char *fmt, ...) struct fdtdec_phandle_args; /** + * gpio_flags_xlate() - convert DT flags to internal flags + * + * This routine converts the GPIO_* flags from the generic DT binding to the + * GPIOD_* flags used internally. It can be called from driver xlate functions. + */ +unsigned long gpio_flags_xlate(uint32_t arg); + +/** * gpio_xlate_offs_flags() - implementation for common use of dm_gpio_ops.xlate * * This routine sets the offset field to args[0] and the flags field to |