diff options
author | Jonathan Corbet <corbet@lwn.net> | 2009-12-01 20:39:57 -0700 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2010-05-07 17:16:02 -0600 |
commit | 7e0de022680f7899d33141f3ab5724a704f5669a (patch) | |
tree | 237054ee8d0676b9a327f0e3cdd1a6773cb3eb2d /drivers/video/via/via-gpio.h | |
parent | 24b4d82e4715841848a499534ed5cb7db3d6bca3 (diff) | |
download | lwn-7e0de022680f7899d33141f3ab5724a704f5669a.tar.gz lwn-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.h | 15 |
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 |