Home
last modified time | relevance | path

Searched refs:gpio_idx (Results 1 – 1 of 1) sorted by relevance

/linux-4.19.296/drivers/gpio/
Dgpio-mxc.c176 u32 gpio_idx = d->hwirq; in gpio_set_irq_type() local
180 port->both_edges &= ~(1 << gpio_idx); in gpio_set_irq_type()
192 val = port->gc.get(&port->gc, gpio_idx); in gpio_set_irq_type()
195 pr_debug("mxc: set GPIO %d to low trigger\n", gpio_idx); in gpio_set_irq_type()
198 pr_debug("mxc: set GPIO %d to high trigger\n", gpio_idx); in gpio_set_irq_type()
200 port->both_edges |= 1 << gpio_idx; in gpio_set_irq_type()
216 writel(val | (1 << gpio_idx), in gpio_set_irq_type()
219 writel(val & ~(1 << gpio_idx), in gpio_set_irq_type()
224 reg += GPIO_ICR1 + ((gpio_idx & 0x10) >> 2); /* lower or upper register */ in gpio_set_irq_type()
225 bit = gpio_idx & 0xf; in gpio_set_irq_type()
[all …]