aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sm501.h
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-07-25 04:45:59 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-25 13:53:29 -0400
commitf61be273d3699d174bc1438e6804f9f9e52bb932 (patch)
tree3d9940d725e2837168b8b072140b85b00c198896 /include/linux/sm501.h
parent472dba7d117844c746be97db6be26c2810d79b62 (diff)
sm501: add gpiolib support
Add support for exporting the GPIOs on the SM501 via gpiolib. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Cc: Arnaud Patard <apatard@mandriva.com> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/sm501.h')
-rw-r--r--include/linux/sm501.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/include/linux/sm501.h b/include/linux/sm501.h
index 145405bf9efa..6ea39007c8a3 100644
--- a/include/linux/sm501.h
+++ b/include/linux/sm501.h
@@ -46,24 +46,6 @@ extern unsigned long sm501_modify_reg(struct device *dev,
46 unsigned long set, 46 unsigned long set,
47 unsigned long clear); 47 unsigned long clear);
48 48
49/* sm501_gpio_set
50 *
51 * set the state of the given GPIO line
52*/
53
54extern void sm501_gpio_set(struct device *dev,
55 unsigned long gpio,
56 unsigned int to,
57 unsigned int dir);
58
59/* sm501_gpio_get
60 *
61 * get the state of the given GPIO line
62*/
63
64extern unsigned long sm501_gpio_get(struct device *dev,
65 unsigned long gpio);
66
67 49
68/* Platform data definitions */ 50/* Platform data definitions */
69 51
@@ -131,6 +113,7 @@ struct sm501_reg_init {
131#define SM501_USE_FBACCEL (1<<6) 113#define SM501_USE_FBACCEL (1<<6)
132#define SM501_USE_AC97 (1<<7) 114#define SM501_USE_AC97 (1<<7)
133#define SM501_USE_I2S (1<<8) 115#define SM501_USE_I2S (1<<8)
116#define SM501_USE_GPIO (1<<9)
134 117
135#define SM501_USE_ALL (0xffffffff) 118#define SM501_USE_ALL (0xffffffff)
136 119
@@ -173,6 +156,7 @@ struct sm501_platdata {
173 struct sm501_platdata_fb *fb; 156 struct sm501_platdata_fb *fb;
174 157
175 int flags; 158 int flags;
159 unsigned gpio_base;
176 160
177 int (*get_power)(struct device *dev); 161 int (*get_power)(struct device *dev);
178 int (*set_power)(struct device *dev, unsigned int on); 162 int (*set_power)(struct device *dev, unsigned int on);