diff options
| author | Wolfgang Denk <wd@denx.de> | 2010-07-14 22:07:41 +0200 |
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2010-07-14 22:07:41 +0200 |
| commit | d6f324d03d7829a1da1dee8b60f91b173a3976f0 (patch) | |
| tree | 854d9d8bb71573483276fe9f3faa48f242bb543f /arch/nios2/include/asm/gpio.h | |
| parent | e1e3cf7c79d97e7c59f90036d6e1e8e9d3abfbbe (diff) | |
| parent | a3c09f66b2b84e98333c317ffb24a95f88ee5a10 (diff) | |
| download | olio-uboot-2014.01-d6f324d03d7829a1da1dee8b60f91b173a3976f0.tar.xz olio-uboot-2014.01-d6f324d03d7829a1da1dee8b60f91b173a3976f0.zip | |
Merge branch 'next' of git://git.denx.de/u-boot-nios
Diffstat (limited to 'arch/nios2/include/asm/gpio.h')
| -rw-r--r-- | arch/nios2/include/asm/gpio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/nios2/include/asm/gpio.h b/arch/nios2/include/asm/gpio.h index 76c425e68..cff1dd9a1 100644 --- a/arch/nios2/include/asm/gpio.h +++ b/arch/nios2/include/asm/gpio.h @@ -21,6 +21,11 @@ #ifdef CONFIG_SYS_GPIO_BASE #include <asm/io.h> +static inline int gpio_request(unsigned gpio, const char *label) +{ + return 0; +} + static inline int gpio_direction_input(unsigned gpio) { writel(1, CONFIG_SYS_GPIO_BASE + (gpio << 2)); @@ -43,6 +48,7 @@ static inline void gpio_set_value(unsigned gpio, int value) writel(value ? 3 : 2, CONFIG_SYS_GPIO_BASE + (gpio << 2)); } #else +extern int gpio_request(unsigned gpio, const char *label); extern int gpio_direction_input(unsigned gpio); extern int gpio_direction_output(unsigned gpio, int value); extern int gpio_get_value(unsigned gpio); |