mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
5130216265
In SiRFprimaII, Each GPIO pin can be configured as input or output independently. If a GPIO is configured as input, it can also be enabled as an interrupt source (either edge or level triggered). These pins must be either MUXed as GPIO or other function pads. Signed-off-by: Yuping Luo <yuping.luo@csr.com> Signed-off-by: Barry Song <Baohua.Song@csr.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
14 lines
239 B
C
14 lines
239 B
C
#ifndef __MACH_GPIO_H
|
|
#define __MACH_GPIO_H
|
|
|
|
/* Pull up/down values */
|
|
enum sirfsoc_gpio_pull {
|
|
SIRFSOC_GPIO_PULL_NONE,
|
|
SIRFSOC_GPIO_PULL_UP,
|
|
SIRFSOC_GPIO_PULL_DOWN,
|
|
};
|
|
|
|
void sirfsoc_gpio_set_pull(unsigned gpio, unsigned mode);
|
|
|
|
#endif
|