aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sm501.h
diff options
context:
space:
mode:
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);