diff options
-rw-r--r-- | drivers/char/Makefile | 2 | ||||
-rw-r--r-- | drivers/char/nsc_gpio.c | 45 |
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 | |||
81 | obj-$(CONFIG_PPDEV) += ppdev.o | 81 | obj-$(CONFIG_PPDEV) += ppdev.o |
82 | obj-$(CONFIG_NWBUTTON) += nwbutton.o | 82 | obj-$(CONFIG_NWBUTTON) += nwbutton.o |
83 | obj-$(CONFIG_NWFLASH) += nwflash.o | 83 | obj-$(CONFIG_NWFLASH) += nwflash.o |
84 | obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o | 84 | obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o nsc_gpio.o |
85 | obj-$(CONFIG_CS5535_GPIO) += cs5535_gpio.o | 85 | obj-$(CONFIG_CS5535_GPIO) += cs5535_gpio.o |
86 | obj-$(CONFIG_GPIO_VR41XX) += vr41xx_giu.o | 86 | obj-$(CONFIG_GPIO_VR41XX) += vr41xx_giu.o |
87 | obj-$(CONFIG_TANBAC_TB0219) += tb0219.o | 87 | obj-$(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 | |||
22 | MODULE_AUTHOR("Jim Cromie <jim.cromie@gmail.com>"); | ||
23 | MODULE_DESCRIPTION("NatSemi GPIO Common Methods"); | ||
24 | MODULE_LICENSE("GPL"); | ||
25 | |||
26 | static int __init nsc_gpio_init(void) | ||
27 | { | ||
28 | printk(KERN_DEBUG NAME " initializing\n"); | ||
29 | return 0; | ||
30 | } | ||
31 | |||
32 | static 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 | ||
39 | EXPORT_SYMBOL(scx200_gpio_write); | ||
40 | EXPORT_SYMBOL(scx200_gpio_read); | ||
41 | EXPORT_SYMBOL(scx200_gpio_release); | ||
42 | */ | ||
43 | |||
44 | module_init(nsc_gpio_init); | ||
45 | module_exit(nsc_gpio_cleanup); | ||