![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 #ifndef __GPIO_PXA_H 0003 #define __GPIO_PXA_H 0004 0005 #define GPIO_bit(x) (1 << ((x) & 0x1f)) 0006 0007 #define gpio_to_bank(gpio) ((gpio) >> 5) 0008 0009 /* NOTE: some PXAs have fewer on-chip GPIOs (like PXA255, with 85). 0010 * Those cases currently cause holes in the GPIO number space, the 0011 * actual number of the last GPIO is recorded by 'pxa_last_gpio'. 0012 */ 0013 extern int pxa_last_gpio; 0014 0015 extern int pxa_irq_to_gpio(int irq); 0016 0017 struct pxa_gpio_platform_data { 0018 int irq_base; 0019 int (*gpio_set_wake)(unsigned int gpio, unsigned int on); 0020 }; 0021 0022 #endif /* __GPIO_PXA_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |