Home
last modified time | relevance | path

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

/linux-6.1.9/arch/arm/mach-pxa/
Dspitz_pm.c105 PGSR2 |= GPIO_bit(SPITZ_GPIO_KEY_STROBE0); in spitz_presuspend()
111 PRER = GPIO_bit(SPITZ_GPIO_KEY_INT); in spitz_presuspend()
112 PFER = GPIO_bit(SPITZ_GPIO_KEY_INT) | GPIO_bit(SPITZ_GPIO_RESET); in spitz_presuspend()
113 PWER = GPIO_bit(SPITZ_GPIO_KEY_INT) | GPIO_bit(SPITZ_GPIO_RESET) | PWER_RTC; in spitz_presuspend()
114 PKWR = GPIO_bit(SPITZ_GPIO_SYNC) | GPIO_bit(SPITZ_GPIO_KEY_INT) | GPIO_bit(SPITZ_GPIO_RESET); in spitz_presuspend()
150 if (PEDR & GPIO_bit(SPITZ_GPIO_KEY_INT)) in spitz_should_wakeup()
151 is_resume |= GPIO_bit(SPITZ_GPIO_KEY_INT); in spitz_should_wakeup()
153 if (PKSR & GPIO_bit(SPITZ_GPIO_SYNC)) in spitz_should_wakeup()
154 is_resume |= GPIO_bit(SPITZ_GPIO_SYNC); in spitz_should_wakeup()
Dmfp-pxa2xx.c55 unsigned long gafr, mask = GPIO_bit(gpio); in __mfp_config_gpio()
239 gpio_desc[i].mask = GPIO_bit(i); in pxa25x_mfp_init()
325 if (GPIO_bit(i) & 0x1e4) in pxa27x_mfp_init()
329 gpio_desc[i].mask = GPIO_bit(i); in pxa27x_mfp_init()
359 (GPDR(i) & GPIO_bit(i))) { in pxa2xx_mfp_suspend()
360 if (GPLR(i) & GPIO_bit(i)) in pxa2xx_mfp_suspend()
361 PGSR(gpio_to_bank(i)) |= GPIO_bit(i); in pxa2xx_mfp_suspend()
363 PGSR(gpio_to_bank(i)) &= ~GPIO_bit(i); in pxa2xx_mfp_suspend()
380 if ((gpdr_lpm[gpio_to_bank(i)] & GPIO_bit(i)) || in pxa2xx_mfp_suspend()
382 (saved_gpdr[gpio_to_bank(i)] & GPIO_bit(i)))) in pxa2xx_mfp_suspend()
[all …]
Dcorgi_pm.c99 if ((PEDR & GPIO_bit(CORGI_GPIO_AC_IN))) { in corgi_should_wakeup()
113 if ((PEDR & GPIO_bit(CORGI_GPIO_CHRG_FULL))) in corgi_should_wakeup()
116 if (PEDR & GPIO_bit(CORGI_GPIO_KEY_INT)) in corgi_should_wakeup()
117 is_resume |= GPIO_bit(CORGI_GPIO_KEY_INT); in corgi_should_wakeup()
119 if (PEDR & GPIO_bit(CORGI_GPIO_WAKEUP)) in corgi_should_wakeup()
120 is_resume |= GPIO_bit(CORGI_GPIO_WAKEUP); in corgi_should_wakeup()
Dcorgi.h54 #define CORGI_GPIO_STROBE_BIT(a) GPIO_bit(66+(a))
55 #define CORGI_GPIO_SENSE_BIT(a) GPIO_bit(58+(a))
Dtosa.h101 #define TOSA_GPIO_STROBE_BIT(a) GPIO_bit(58+(a))
102 #define TOSA_GPIO_SENSE_BIT(a) GPIO_bit(69+(a))
/linux-6.1.9/drivers/gpio/
Dgpio-pxa.c215 dir = gpdr & GPIO_bit(gpio); in __gpio_is_occupied()
223 ret = gpdr & GPIO_bit(gpio); in __gpio_is_occupied()
263 uint32_t value, mask = GPIO_bit(offset); in pxa_gpio_direction_input()
290 uint32_t tmp, mask = GPIO_bit(offset); in pxa_gpio_direction_output()
320 return !!(gplr & GPIO_bit(offset)); in pxa_gpio_get()
327 writel_relaxed(GPIO_bit(offset), in pxa_gpio_set()
400 unsigned long gpdr, mask = GPIO_bit(gpio); in pxa_gpio_irq_type()
406 if ((c->irq_edge_rise | c->irq_edge_fall) & GPIO_bit(gpio)) in pxa_gpio_irq_type()
488 writel_relaxed(GPIO_bit(gpio), base + GEDR_OFFSET); in pxa_ack_muxed_gpio()
499 b->irq_mask &= ~GPIO_bit(gpio); in pxa_mask_muxed_gpio()
[all …]
/linux-6.1.9/include/linux/
Dgpio-pxa.h5 #define GPIO_bit(x) (1 << ((x) & 0x1f)) macro