aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/via/via-gpio.h
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2009-12-01 22:39:57 -0500
committerJonathan Corbet <corbet@lwn.net>2010-05-07 19:16:02 -0400
commit7e0de022680f7899d33141f3ab5724a704f5669a (patch)
tree237054ee8d0676b9a327f0e3cdd1a6773cb3eb2d /drivers/video/via/via-gpio.h
parent24b4d82e4715841848a499534ed5cb7db3d6bca3 (diff)
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 @@
1/*
2 * Support for viafb GPIO ports.
3 *
4 * Copyright 2009 Jonathan Corbet <corbet@lwn.net>
5 * Distributable under version 2 of the GNU General Public License.
6 */
7
8#ifndef __VIA_GPIO_H__
9#define __VIA_GPIO_H__
10
11extern int viafb_create_gpios(struct viafb_dev *vdev,
12 const struct via_port_cfg *port_cfg);
13extern int viafb_destroy_gpios(void);
14extern int viafb_gpio_lookup(const char *name);
15#endif