diff options
-rw-r--r-- | drivers/ssb/driver_chipcommon.c | 10 | ||||
-rw-r--r-- | include/linux/ssb/ssb_driver_chipcommon.h | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/drivers/ssb/driver_chipcommon.c b/drivers/ssb/driver_chipcommon.c index e586321a473a..45b672a69003 100644 --- a/drivers/ssb/driver_chipcommon.c +++ b/drivers/ssb/driver_chipcommon.c | |||
@@ -353,6 +353,16 @@ void ssb_chipco_watchdog_timer_set(struct ssb_chipcommon *cc, u32 ticks) | |||
353 | chipco_write32(cc, SSB_CHIPCO_WATCHDOG, ticks); | 353 | chipco_write32(cc, SSB_CHIPCO_WATCHDOG, ticks); |
354 | } | 354 | } |
355 | 355 | ||
356 | void ssb_chipco_irq_mask(struct ssb_chipcommon *cc, u32 mask, u32 value) | ||
357 | { | ||
358 | chipco_write32_masked(cc, SSB_CHIPCO_IRQMASK, mask, value); | ||
359 | } | ||
360 | |||
361 | u32 ssb_chipco_irq_status(struct ssb_chipcommon *cc, u32 mask) | ||
362 | { | ||
363 | return chipco_read32(cc, SSB_CHIPCO_IRQSTAT) & mask; | ||
364 | } | ||
365 | |||
356 | u32 ssb_chipco_gpio_in(struct ssb_chipcommon *cc, u32 mask) | 366 | u32 ssb_chipco_gpio_in(struct ssb_chipcommon *cc, u32 mask) |
357 | { | 367 | { |
358 | return chipco_read32(cc, SSB_CHIPCO_GPIOIN) & mask; | 368 | return chipco_read32(cc, SSB_CHIPCO_GPIOIN) & mask; |
diff --git a/include/linux/ssb/ssb_driver_chipcommon.h b/include/linux/ssb/ssb_driver_chipcommon.h index 536851b946f6..b548a54ff1f5 100644 --- a/include/linux/ssb/ssb_driver_chipcommon.h +++ b/include/linux/ssb/ssb_driver_chipcommon.h | |||
@@ -390,6 +390,10 @@ extern void ssb_chipco_set_clockmode(struct ssb_chipcommon *cc, | |||
390 | extern void ssb_chipco_watchdog_timer_set(struct ssb_chipcommon *cc, | 390 | extern void ssb_chipco_watchdog_timer_set(struct ssb_chipcommon *cc, |
391 | u32 ticks); | 391 | u32 ticks); |
392 | 392 | ||
393 | void ssb_chipco_irq_mask(struct ssb_chipcommon *cc, u32 mask, u32 value); | ||
394 | |||
395 | u32 ssb_chipco_irq_status(struct ssb_chipcommon *cc, u32 mask); | ||
396 | |||
393 | /* Chipcommon GPIO pin access. */ | 397 | /* Chipcommon GPIO pin access. */ |
394 | u32 ssb_chipco_gpio_in(struct ssb_chipcommon *cc, u32 mask); | 398 | u32 ssb_chipco_gpio_in(struct ssb_chipcommon *cc, u32 mask); |
395 | u32 ssb_chipco_gpio_out(struct ssb_chipcommon *cc, u32 mask, u32 value); | 399 | u32 ssb_chipco_gpio_out(struct ssb_chipcommon *cc, u32 mask, u32 value); |