xref: /linux/include/linux/gpio/gpio-reg.h (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2380639c7SRussell King #ifndef GPIO_REG_H
3380639c7SRussell King #define GPIO_REG_H
4380639c7SRussell King 
5*36805be7SAndy Shevchenko #include <linux/types.h>
6*36805be7SAndy Shevchenko 
7380639c7SRussell King struct device;
80e3cb6eeSRussell King struct irq_domain;
9380639c7SRussell King 
10*36805be7SAndy Shevchenko struct gpio_chip;
11*36805be7SAndy Shevchenko 
12380639c7SRussell King struct gpio_chip *gpio_reg_init(struct device *dev, void __iomem *reg,
13380639c7SRussell King 	int base, int num, const char *label, u32 direction, u32 def_out,
140e3cb6eeSRussell King 	const char *const *names, struct irq_domain *irqdom, const int *irqs);
15380639c7SRussell King 
16380639c7SRussell King int gpio_reg_resume(struct gpio_chip *gc);
17380639c7SRussell King 
18f310f2efSEnrico Weigelt #endif /* GPIO_REG_H */
19