summaryrefslogtreecommitdiffstats
path: root/include/gpio.h
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2013-03-11 13:26:36 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-11 22:17:42 +0100
commit100c016f3561d5f87fd27f8cb02d886ba3e72536 (patch)
tree8a329c33ae757a1e9c438762c68853a03f681bf0 /include/gpio.h
parentb41afe3c22f1dc4f71470bbc25d492c0401f2284 (diff)
downloadbarebox-100c016f3561d5f87fd27f8cb02d886ba3e72536.tar.gz
barebox-100c016f3561d5f87fd27f8cb02d886ba3e72536.tar.xz
Add Generic GPIO driver
This patch adds generic memory-mapped GPIO controller support. Code taken from Linux Kernel and adopted for barebox. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/gpio.h')
-rw-r--r--include/gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gpio.h b/include/gpio.h
index eedb980d00..c2fb9f7a99 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -40,6 +40,7 @@ struct gpio_chip {
};
int gpiochip_add(struct gpio_chip *chip);
+void gpiochip_remove(struct gpio_chip *chip);
int gpio_get_num(struct device_d *dev, int gpio);