Lines Matching defs:gpio
13 #include <linux/gpio/driver.h>
48 static inline u32 tb10x_reg_read(struct tb10x_gpio *gpio, unsigned int offs)
50 return ioread32(gpio->base + offs);
53 static inline void tb10x_reg_write(struct tb10x_gpio *gpio, unsigned int offs,
56 iowrite32(val, gpio->base + offs);
59 static inline void tb10x_set_bits(struct tb10x_gpio *gpio, unsigned int offs,
65 spin_lock_irqsave(&gpio->gc.bgpio_lock, flags);
67 r = tb10x_reg_read(gpio, offs);
70 tb10x_reg_write(gpio, offs, r);
72 spin_unlock_irqrestore(&gpio->gc.bgpio_lock, flags);
233 { .compatible = "abilis,tb10x-gpio" },
242 .name = "tb10x-gpio",
249 MODULE_DESCRIPTION("tb10x gpio.");