diff options
author | Christian Ruppert <christian.ruppert@abilis.com> | 2013-10-15 09:37:54 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-10-16 09:33:50 -0400 |
commit | 586a87e6edc936d6d3c3585af504b33b9c3f0a06 (patch) | |
tree | e3a8b9960ef9b6f9e28eaf235790889f5ddf886e /include/asm-generic/gpio.h | |
parent | c8ce878206076b159ee9488133aa51314570da38 (diff) |
pinctrl/gpio: non-linear GPIO ranges accesible from gpiolib
This patch adds the infrastructure required to register non-linear gpio
ranges through gpiolib and the standard GPIO device tree bindings.
Signed-off-by: Christian Ruppert <christian.ruppert@abilis.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/asm-generic/gpio.h')
-rw-r--r-- | include/asm-generic/gpio.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index bde646995d10..523f40525535 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h | |||
@@ -228,6 +228,9 @@ struct gpio_pin_range { | |||
228 | int gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, | 228 | int gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, |
229 | unsigned int gpio_offset, unsigned int pin_offset, | 229 | unsigned int gpio_offset, unsigned int pin_offset, |
230 | unsigned int npins); | 230 | unsigned int npins); |
231 | int gpiochip_add_pingroup_range(struct gpio_chip *chip, | ||
232 | struct pinctrl_dev *pctldev, | ||
233 | unsigned int gpio_offset, const char *pin_group); | ||
231 | void gpiochip_remove_pin_ranges(struct gpio_chip *chip); | 234 | void gpiochip_remove_pin_ranges(struct gpio_chip *chip); |
232 | 235 | ||
233 | #else | 236 | #else |
@@ -239,6 +242,13 @@ gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, | |||
239 | { | 242 | { |
240 | return 0; | 243 | return 0; |
241 | } | 244 | } |
245 | static inline int | ||
246 | gpiochip_add_pingroup_range(struct gpio_chip *chip, | ||
247 | struct pinctrl_dev *pctldev, | ||
248 | unsigned int gpio_offset, const char *pin_group) | ||
249 | { | ||
250 | return 0; | ||
251 | } | ||
242 | 252 | ||
243 | static inline void | 253 | static inline void |
244 | gpiochip_remove_pin_ranges(struct gpio_chip *chip) | 254 | gpiochip_remove_pin_ranges(struct gpio_chip *chip) |