Home
last modified time | relevance | path

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

/linux-6.12.1/arch/arm/mach-pxa/
Dspitz_pm.c108 PGSR2 |= GPIO_bit(SPITZ_GPIO_KEY_STROBE0); in spitz_presuspend()
114 PRER = GPIO_bit(SPITZ_GPIO_KEY_INT); in spitz_presuspend()
115 PFER = GPIO_bit(SPITZ_GPIO_KEY_INT) | GPIO_bit(SPITZ_GPIO_RESET); in spitz_presuspend()
116 PWER = GPIO_bit(SPITZ_GPIO_KEY_INT) | GPIO_bit(SPITZ_GPIO_RESET) | PWER_RTC; in spitz_presuspend()
117 PKWR = GPIO_bit(SPITZ_GPIO_SYNC) | GPIO_bit(SPITZ_GPIO_KEY_INT) | GPIO_bit(SPITZ_GPIO_RESET); in spitz_presuspend()
153 if (PEDR & GPIO_bit(SPITZ_GPIO_KEY_INT)) in spitz_should_wakeup()
154 is_resume |= GPIO_bit(SPITZ_GPIO_KEY_INT); in spitz_should_wakeup()
156 if (PKSR & GPIO_bit(SPITZ_GPIO_SYNC)) in spitz_should_wakeup()
157 is_resume |= GPIO_bit(SPITZ_GPIO_SYNC); in spitz_should_wakeup()
Dmfp-pxa2xx.c56 unsigned long gafr, mask = GPIO_bit(gpio); in __mfp_config_gpio()
236 gpio_desc[i].mask = GPIO_bit(i); in pxa25x_mfp_init()
322 if (GPIO_bit(i) & 0x1e4) in pxa27x_mfp_init()
326 gpio_desc[i].mask = GPIO_bit(i); in pxa27x_mfp_init()
356 (GPDR(i) & GPIO_bit(i))) { in pxa2xx_mfp_suspend()
357 if (GPLR(i) & GPIO_bit(i)) in pxa2xx_mfp_suspend()
358 PGSR(gpio_to_bank(i)) |= GPIO_bit(i); in pxa2xx_mfp_suspend()
360 PGSR(gpio_to_bank(i)) &= ~GPIO_bit(i); in pxa2xx_mfp_suspend()
377 if ((gpdr_lpm[gpio_to_bank(i)] & GPIO_bit(i)) || in pxa2xx_mfp_suspend()
379 (saved_gpdr[gpio_to_bank(i)] & GPIO_bit(i)))) in pxa2xx_mfp_suspend()
[all …]
/linux-6.12.1/drivers/gpio/
Dgpio-pxa.c209 dir = gpdr & GPIO_bit(gpio); in __gpio_is_occupied()
217 ret = gpdr & GPIO_bit(gpio); in __gpio_is_occupied()
258 uint32_t value, mask = GPIO_bit(offset); in pxa_gpio_direction_input()
285 uint32_t tmp, mask = GPIO_bit(offset); in pxa_gpio_direction_output()
315 return !!(gplr & GPIO_bit(offset)); in pxa_gpio_get()
322 writel_relaxed(GPIO_bit(offset), in pxa_gpio_set()
395 unsigned long gpdr, mask = GPIO_bit(gpio); in pxa_gpio_irq_type()
401 if ((c->irq_edge_rise | c->irq_edge_fall) & GPIO_bit(gpio)) in pxa_gpio_irq_type()
483 writel_relaxed(GPIO_bit(gpio), base + GEDR_OFFSET); in pxa_ack_muxed_gpio()
494 b->irq_mask &= ~GPIO_bit(gpio); in pxa_mask_muxed_gpio()
[all …]
/linux-6.12.1/include/linux/
Dgpio-pxa.h5 #define GPIO_bit(x) (1 << ((x) & 0x1f)) macro