aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2008-02-19 08:53:35 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-02-20 20:11:49 -0500
commitc2bcbe65fc88d61f9a806367ff6eab76c9eabb3a (patch)
treec882d3016ed4a273b8e7e8fb9b86c1bcb6d6836a /include
parent42bfad4f71637c4eb4791aa8062063c4a8526522 (diff)
ssb: Fix the GPIO API
This fixes the GPIO API to be usable. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ssb/ssb_driver_chipcommon.h10
-rw-r--r--include/linux/ssb/ssb_driver_extif.h9
2 files changed, 11 insertions, 8 deletions
diff --git a/include/linux/ssb/ssb_driver_chipcommon.h b/include/linux/ssb/ssb_driver_chipcommon.h
index 89638153cbe1..536851b946f6 100644
--- a/include/linux/ssb/ssb_driver_chipcommon.h
+++ b/include/linux/ssb/ssb_driver_chipcommon.h
@@ -390,11 +390,13 @@ extern void ssb_chipco_set_clockmode(struct ssb_chipcommon *cc,
390extern void ssb_chipco_watchdog_timer_set(struct ssb_chipcommon *cc, 390extern void ssb_chipco_watchdog_timer_set(struct ssb_chipcommon *cc,
391 u32 ticks); 391 u32 ticks);
392 392
393/* Chipcommon GPIO pin access. */
393u32 ssb_chipco_gpio_in(struct ssb_chipcommon *cc, u32 mask); 394u32 ssb_chipco_gpio_in(struct ssb_chipcommon *cc, u32 mask);
394 395u32 ssb_chipco_gpio_out(struct ssb_chipcommon *cc, u32 mask, u32 value);
395void ssb_chipco_gpio_out(struct ssb_chipcommon *cc, u32 mask, u32 value); 396u32 ssb_chipco_gpio_outen(struct ssb_chipcommon *cc, u32 mask, u32 value);
396 397u32 ssb_chipco_gpio_control(struct ssb_chipcommon *cc, u32 mask, u32 value);
397void ssb_chipco_gpio_outen(struct ssb_chipcommon *cc, u32 mask, u32 value); 398u32 ssb_chipco_gpio_intmask(struct ssb_chipcommon *cc, u32 mask, u32 value);
399u32 ssb_chipco_gpio_polarity(struct ssb_chipcommon *cc, u32 mask, u32 value);
398 400
399#ifdef CONFIG_SSB_SERIAL 401#ifdef CONFIG_SSB_SERIAL
400extern int ssb_chipco_serial_init(struct ssb_chipcommon *cc, 402extern int ssb_chipco_serial_init(struct ssb_chipcommon *cc,
diff --git a/include/linux/ssb/ssb_driver_extif.h b/include/linux/ssb/ssb_driver_extif.h
index 0d7c9bfa965d..91161f0aa22b 100644
--- a/include/linux/ssb/ssb_driver_extif.h
+++ b/include/linux/ssb/ssb_driver_extif.h
@@ -174,11 +174,12 @@ extern void ssb_extif_timing_init(struct ssb_extif *extif,
174extern void ssb_extif_watchdog_timer_set(struct ssb_extif *extif, 174extern void ssb_extif_watchdog_timer_set(struct ssb_extif *extif,
175 u32 ticks); 175 u32 ticks);
176 176
177/* Extif GPIO pin access */
177u32 ssb_extif_gpio_in(struct ssb_extif *extif, u32 mask); 178u32 ssb_extif_gpio_in(struct ssb_extif *extif, u32 mask);
178 179u32 ssb_extif_gpio_out(struct ssb_extif *extif, u32 mask, u32 value);
179void ssb_extif_gpio_out(struct ssb_extif *extif, u32 mask, u32 value); 180u32 ssb_extif_gpio_outen(struct ssb_extif *extif, u32 mask, u32 value);
180 181u32 ssb_extif_gpio_polarity(struct ssb_extif *extif, u32 mask, u32 value);
181void ssb_extif_gpio_outen(struct ssb_extif *extif, u32 mask, u32 value); 182u32 ssb_extif_gpio_intmask(struct ssb_extif *extif, u32 mask, u32 value);
182 183
183#ifdef CONFIG_SSB_SERIAL 184#ifdef CONFIG_SSB_SERIAL
184extern int ssb_extif_serial_init(struct ssb_extif *extif, 185extern int ssb_extif_serial_init(struct ssb_extif *extif,