Lines Matching full:gpio2
15 * GPIO0-31 from GPIO1 block, GPIO200-215 from GPIO2 block.
36 /* register offsets within GPIO2 block */
281 * GPIO2 block macros for common linux GPIO functions. The 'gpio'
357 /* GPIO2 shared interrupts and control */
359 static inline void __alchemy_gpio2_mod_int(int gpio2, int en) in __alchemy_gpio2_mod_int() argument
364 r |= 1 << gpio2; in __alchemy_gpio2_mod_int()
366 r &= ~(1 << gpio2); in __alchemy_gpio2_mod_int()
372 * alchemy_gpio2_enable_int - Enable a GPIO2 pins' shared irq contribution.
373 * @gpio2: The GPIO2 pin to activate (200...215).
383 * GPIO2-based interrupts have their own request to the INTC. Please
390 * NOTE: 'gpio2' parameter must be in range of the GPIO2 numberspace
393 static inline void alchemy_gpio2_enable_int(int gpio2) in alchemy_gpio2_enable_int() argument
397 gpio2 -= ALCHEMY_GPIO2_BASE; in alchemy_gpio2_enable_int()
403 gpio2 -= 8; in alchemy_gpio2_enable_int()
407 __alchemy_gpio2_mod_int(gpio2, 1); in alchemy_gpio2_enable_int()
412 * alchemy_gpio2_disable_int - Disable a GPIO2 pins' shared irq contribution.
413 * @gpio2: The GPIO2 pin to activate (200...215).
417 static inline void alchemy_gpio2_disable_int(int gpio2) in alchemy_gpio2_disable_int() argument
421 gpio2 -= ALCHEMY_GPIO2_BASE; in alchemy_gpio2_disable_int()
427 gpio2 -= 8; in alchemy_gpio2_disable_int()
431 __alchemy_gpio2_mod_int(gpio2, 0); in alchemy_gpio2_disable_int()
436 * alchemy_gpio2_enable - Activate GPIO2 block.
438 * The GPIO2 block must be enabled excplicitly to work. On systems
451 * alchemy_gpio2_disable - disable GPIO2 block.
453 * Disable and put GPIO2 block in low-power mode.