aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorJim Cromie <jim.cromie@gmail.com>2006-06-27 05:54:19 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-27 20:32:42 -0400
commit1ca5df0a4cbd17a9536e63c5f69d4717c6538eb0 (patch)
tree8986bbadc721599a0751b8ec6488f22bac2ce4a6 /drivers/char
parentc3dc8071eedaac8c8a05c30fe20b78452a818dd9 (diff)
[PATCH] chardev: GPIO for SCx200 & PC-8736x: add empty common-module
Add the nsc_gpio common-support module as an empty shell. Next patch starts the migration of the common gpio support routines. Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/Makefile2
-rw-r--r--drivers/char/nsc_gpio.c45
2 files changed, 46 insertions, 1 deletions
diff --git a/drivers/char/Makefile b/drivers/char/Makefile
index 524105597ea7..8bcaf4d80359 100644
--- a/drivers/char/Makefile
+++ b/drivers/char/Makefile
@@ -81,7 +81,7 @@ obj-$(CONFIG_COBALT_LCD) += lcd.o
81obj-$(CONFIG_PPDEV) += ppdev.o 81obj-$(CONFIG_PPDEV) += ppdev.o
82obj-$(CONFIG_NWBUTTON) += nwbutton.o 82obj-$(CONFIG_NWBUTTON) += nwbutton.o
83obj-$(CONFIG_NWFLASH) += nwflash.o 83obj-$(CONFIG_NWFLASH) += nwflash.o
84obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o 84obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o nsc_gpio.o
85obj-$(CONFIG_CS5535_GPIO) += cs5535_gpio.o 85obj-$(CONFIG_CS5535_GPIO) += cs5535_gpio.o
86obj-$(CONFIG_GPIO_VR41XX) += vr41xx_giu.o 86obj-$(CONFIG_GPIO_VR41XX) += vr41xx_giu.o
87obj-$(CONFIG_TANBAC_TB0219) += tb0219.o 87obj-$(CONFIG_TANBAC_TB0219) += tb0219.o
diff --git a/drivers/char/nsc_gpio.c b/drivers/char/nsc_gpio.c
new file mode 100644
index 000000000000..42d95904967c
--- /dev/null
+++ b/drivers/char/nsc_gpio.c
@@ -0,0 +1,45 @@
1/* linux/drivers/char/nsc_gpio.c
2
3 National Semiconductor common GPIO device-file/VFS methods.
4 Allows a user space process to control the GPIO pins.
5
6 Copyright (c) 2001,2002 Christer Weinigel <wingel@nano-system.com>
7 Copyright (c) 2005 Jim Cromie <jim.cromie@gmail.com>
8*/
9
10#include <linux/config.h>
11#include <linux/fs.h>
12#include <linux/module.h>
13#include <linux/errno.h>
14#include <linux/kernel.h>
15#include <linux/init.h>
16#include <linux/nsc_gpio.h>
17#include <asm/uaccess.h>
18#include <asm/io.h>
19
20#define NAME "nsc_gpio"
21
22MODULE_AUTHOR("Jim Cromie <jim.cromie@gmail.com>");
23MODULE_DESCRIPTION("NatSemi GPIO Common Methods");
24MODULE_LICENSE("GPL");
25
26static int __init nsc_gpio_init(void)
27{
28 printk(KERN_DEBUG NAME " initializing\n");
29 return 0;
30}
31
32static void __exit nsc_gpio_cleanup(void)
33{
34 printk(KERN_DEBUG NAME " cleanup\n");
35}
36
37/* prepare for
38 common routines for both scx200_gpio and pc87360_gpio
39EXPORT_SYMBOL(scx200_gpio_write);
40EXPORT_SYMBOL(scx200_gpio_read);
41EXPORT_SYMBOL(scx200_gpio_release);
42*/
43
44module_init(nsc_gpio_init);
45module_exit(nsc_gpio_cleanup);