![Magnus Damm](/assets/img/avatar_default.png)
Register the GPIO pin range, and request and free GPIO pins using the pinctrl API. The pctl_name platform data member should be used by platform devices to point out which pinctrl device to use. Follows same style as "dc3465a gpio-rcar: Add pinctrl support", by Laurent Pinchart, thanks to him. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
12 lines
203 B
C
12 lines
203 B
C
#ifndef __GPIO_EM_H__
|
|
#define __GPIO_EM_H__
|
|
|
|
struct gpio_em_config {
|
|
unsigned int gpio_base;
|
|
unsigned int irq_base;
|
|
unsigned int number_of_pins;
|
|
const char *pctl_name;
|
|
};
|
|
|
|
#endif /* __GPIO_EM_H__ */
|