aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2410/include/mach/hardware.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s3c2410/include/mach/hardware.h')
-rw-r--r--arch/arm/mach-s3c2410/include/mach/hardware.h84
1 files changed, 0 insertions, 84 deletions
diff --git a/arch/arm/mach-s3c2410/include/mach/hardware.h b/arch/arm/mach-s3c2410/include/mach/hardware.h
index d7745d85392e..aef5631eac58 100644
--- a/arch/arm/mach-s3c2410/include/mach/hardware.h
+++ b/arch/arm/mach-s3c2410/include/mach/hardware.h
@@ -15,90 +15,6 @@
15 15
16#ifndef __ASSEMBLY__ 16#ifndef __ASSEMBLY__
17 17
18/* external functions for GPIO support
19 *
20 * These allow various different clients to access the same GPIO
21 * registers without conflicting. If your driver only owns the entire
22 * GPIO register, then it is safe to ioremap/__raw_{read|write} to it.
23*/
24
25/* s3c2410_gpio_cfgpin
26 *
27 * set the configuration of the given pin to the value passed.
28 *
29 * eg:
30 * s3c2410_gpio_cfgpin(S3C2410_GPA0, S3C2410_GPA0_ADDR0);
31 * s3c2410_gpio_cfgpin(S3C2410_GPE8, S3C2410_GPE8_SDDAT1);
32*/
33
34extern void s3c2410_gpio_cfgpin(unsigned int pin, unsigned int function);
35
36extern unsigned int s3c2410_gpio_getcfg(unsigned int pin);
37
38/* s3c2410_gpio_getirq
39 *
40 * turn the given pin number into the corresponding IRQ number
41 *
42 * returns:
43 * < 0 = no interrupt for this pin
44 * >=0 = interrupt number for the pin
45*/
46
47extern int s3c2410_gpio_getirq(unsigned int pin);
48
49#ifdef CONFIG_CPU_S3C2400
50
51extern int s3c2400_gpio_getirq(unsigned int pin);
52
53#endif /* CONFIG_CPU_S3C2400 */
54
55/* s3c2410_gpio_irqfilter
56 *
57 * set the irq filtering on the given pin
58 *
59 * on = 0 => disable filtering
60 * 1 => enable filtering
61 *
62 * config = S3C2410_EINTFLT_PCLK or S3C2410_EINTFLT_EXTCLK orred with
63 * width of filter (0 through 63)
64 *
65 *
66*/
67
68extern int s3c2410_gpio_irqfilter(unsigned int pin, unsigned int on,
69 unsigned int config);
70
71/* s3c2410_gpio_pullup
72 *
73 * configure the pull-up control on the given pin
74 *
75 * to = 1 => disable the pull-up
76 * 0 => enable the pull-up
77 *
78 * eg;
79 *
80 * s3c2410_gpio_pullup(S3C2410_GPB0, 0);
81 * s3c2410_gpio_pullup(S3C2410_GPE8, 0);
82*/
83
84extern void s3c2410_gpio_pullup(unsigned int pin, unsigned int to);
85
86/* s3c2410_gpio_getpull
87 *
88 * Read the state of the pull-up on a given pin
89 *
90 * return:
91 * < 0 => error code
92 * 0 => enabled
93 * 1 => disabled
94*/
95
96extern int s3c2410_gpio_getpull(unsigned int pin);
97
98extern void s3c2410_gpio_setpin(unsigned int pin, unsigned int to);
99
100extern unsigned int s3c2410_gpio_getpin(unsigned int pin);
101
102extern unsigned int s3c2410_modify_misccr(unsigned int clr, unsigned int chg); 18extern unsigned int s3c2410_modify_misccr(unsigned int clr, unsigned int chg);
103 19
104#ifdef CONFIG_CPU_S3C2440 20#ifdef CONFIG_CPU_S3C2440