summaryrefslogtreecommitdiffstats
path: root/drivers/video/via/via-gpio.h
diff options
context:
space:
mode:
authorJonathan Corbet2009-12-02 04:39:57 +0100
committerJonathan Corbet2010-05-08 01:16:02 +0200
commit7e0de022680f7899d33141f3ab5724a704f5669a (patch)
tree237054ee8d0676b9a327f0e3cdd1a6773cb3eb2d /drivers/video/via/via-gpio.h
parentviafb: Separate global and fb-specific data (diff)
downloadkernel-qcow2-linux-7e0de022680f7899d33141f3ab5724a704f5669a.tar.gz
kernel-qcow2-linux-7e0de022680f7899d33141f3ab5724a704f5669a.tar.xz
kernel-qcow2-linux-7e0de022680f7899d33141f3ab5724a704f5669a.zip
viafb: add a driver for GPIO lines
This is a simple gpiolib driver giving access to the GPIO lines in the VIA framebuffer system. A simple mechanism exists for switching lines between GPIO and I2C, but it's only compile-time for now. Cc: ScottFang@viatech.com.cn Cc: JosephChan@via.com.tw Cc: Harald Welte <laforge@gnumonks.org> Acked-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'drivers/video/via/via-gpio.h')
-rw-r--r--drivers/video/via/via-gpio.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/video/via/via-gpio.h b/drivers/video/via/via-gpio.h
new file mode 100644
index 000000000000..7b53f966eb4b
--- /dev/null
+++ b/drivers/video/via/via-gpio.h
@@ -0,0 +1,15 @@
+/*
+ * Support for viafb GPIO ports.
+ *
+ * Copyright 2009 Jonathan Corbet <corbet@lwn.net>
+ * Distributable under version 2 of the GNU General Public License.
+ */
+
+#ifndef __VIA_GPIO_H__
+#define __VIA_GPIO_H__
+
+extern int viafb_create_gpios(struct viafb_dev *vdev,
+ const struct via_port_cfg *port_cfg);
+extern int viafb_destroy_gpios(void);
+extern int viafb_gpio_lookup(const char *name);
+#endif