summaryrefslogtreecommitdiff
path: root/arch/nios2
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2010-12-24 15:19:44 +0800
committerScott McNutt <smcnutt@psyent.com>2011-02-08 08:29:53 -0500
commite91d54535f8535c6de05044fa6f715a78f4320f8 (patch)
treee1799392522cfcbea919a3be2ded164fa4d30dc4 /arch/nios2
parent8d4addc3c3fe1a9ea160a5a1a20a1f934ff3fe97 (diff)
downloadu-boot-imx-e91d54535f8535c6de05044fa6f715a78f4320f8.zip
u-boot-imx-e91d54535f8535c6de05044fa6f715a78f4320f8.tar.gz
u-boot-imx-e91d54535f8535c6de05044fa6f715a78f4320f8.tar.bz2
nios2: add gpio_free
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Scott McNutt <smcnutt@psyent.com>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/include/asm/gpio.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/nios2/include/asm/gpio.h b/arch/nios2/include/asm/gpio.h
index cff1dd9..36a7132 100644
--- a/arch/nios2/include/asm/gpio.h
+++ b/arch/nios2/include/asm/gpio.h
@@ -26,6 +26,11 @@ static inline int gpio_request(unsigned gpio, const char *label)
return 0;
}
+static inline int gpio_free(unsigned gpio)
+{
+ return 0;
+}
+
static inline int gpio_direction_input(unsigned gpio)
{
writel(1, CONFIG_SYS_GPIO_BASE + (gpio << 2));
@@ -49,6 +54,7 @@ static inline void gpio_set_value(unsigned gpio, int value)
}
#else
extern int gpio_request(unsigned gpio, const char *label);
+extern int gpio_free(unsigned gpio);
extern int gpio_direction_input(unsigned gpio);
extern int gpio_direction_output(unsigned gpio, int value);
extern int gpio_get_value(unsigned gpio);