mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
This patch implements generic GPIO routines for the built-in GPIO controllers of the Atheros AR71XX/AR724X/AR913X SoCs. Signed-off-by: Gabor Juhos <[email protected]> Signed-off-by: Imre Kaloz <[email protected]> Cc: David Brownell <[email protected]> Cc: [email protected] Cc: Luis R. Rodriguez <[email protected]> Cc: Cliff Holden <[email protected]> Cc: Kathy Giori <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1948/ Signed-off-by: Ralf Baechle <[email protected]>
27 lines
719 B
C
27 lines
719 B
C
/*
|
|
* Atheros AR71XX/AR724X/AR913X GPIO API definitions
|
|
*
|
|
* Copyright (C) 2008-2010 Gabor Juhos <[email protected]>
|
|
* Copyright (C) 2008 Imre Kaloz <[email protected]>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License version 2 as published
|
|
* by the Free Software Foundation.
|
|
*
|
|
*/
|
|
|
|
#ifndef __ASM_MACH_ATH79_GPIO_H
|
|
#define __ASM_MACH_ATH79_GPIO_H
|
|
|
|
#define ARCH_NR_GPIOS 64
|
|
#include <asm-generic/gpio.h>
|
|
|
|
int gpio_to_irq(unsigned gpio);
|
|
int irq_to_gpio(unsigned irq);
|
|
int gpio_get_value(unsigned gpio);
|
|
void gpio_set_value(unsigned gpio, int value);
|
|
|
|
#define gpio_cansleep __gpio_cansleep
|
|
|
|
#endif /* __ASM_MACH_ATH79_GPIO_H */
|