Searched refs:GPIO_bit (Results 1 – 4 of 4) sorted by relevance
108 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_IN in spitz_should_wakeup() [all...]
56 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( in pxa2xx_mfp_suspend() [all...]
209 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() 397 unsigned long gpdr, mask = GPIO_bit(gpio); in pxa_gpio_irq_type() 403 if ((c->irq_edge_rise | c->irq_edge_fall) & GPIO_bit(gpio)) in pxa_gpio_irq_type() 485 writel_relaxed(GPIO_bit(gpio), base + GEDR_OFFSET); in pxa_ack_muxed_gpio() 496 b->irq_mask &= ~GPIO_bit(gpi in pxa_mask_muxed_gpio() [all...]
5 #define GPIO_bit(x) (1 << ((x) & 0x1f)) macro