diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2012-12-13 13:40:13 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-12-13 13:40:13 -0500 |
commit | 241738bd51cb0efe58e6c570223153e970afe3ae (patch) | |
tree | 05263e1ec3fbd58cc4ba5ee69163612fbb769a4a /include | |
parent | bdf20507da11a9a5b32ef04fa09f352828189aef (diff) | |
parent | ce8f0d0607bcad3ec0e8599be80353204427093e (diff) |
Merge branch 'mips-next' of http://dev.phrozen.org/githttp/mips-next into mips-for-linux-next
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/bcma/bcma_driver_chipcommon.h | 10 | ||||
-rw-r--r-- | include/linux/ssb/ssb.h | 4 | ||||
-rw-r--r-- | include/linux/ssb/ssb_driver_chipcommon.h | 3 | ||||
-rw-r--r-- | include/linux/ssb/ssb_driver_extif.h | 1 |
4 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/bcma/bcma_driver_chipcommon.h b/include/linux/bcma/bcma_driver_chipcommon.h index 1cf1749440ac..7d662a988d24 100644 --- a/include/linux/bcma/bcma_driver_chipcommon.h +++ b/include/linux/bcma/bcma_driver_chipcommon.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef LINUX_BCMA_DRIVER_CC_H_ | 1 | #ifndef LINUX_BCMA_DRIVER_CC_H_ |
2 | #define LINUX_BCMA_DRIVER_CC_H_ | 2 | #define LINUX_BCMA_DRIVER_CC_H_ |
3 | 3 | ||
4 | #include <linux/gpio.h> | ||
5 | |||
4 | /** ChipCommon core registers. **/ | 6 | /** ChipCommon core registers. **/ |
5 | #define BCMA_CC_ID 0x0000 | 7 | #define BCMA_CC_ID 0x0000 |
6 | #define BCMA_CC_ID_ID 0x0000FFFF | 8 | #define BCMA_CC_ID_ID 0x0000FFFF |
@@ -567,6 +569,12 @@ struct bcma_drv_cc { | |||
567 | int nr_serial_ports; | 569 | int nr_serial_ports; |
568 | struct bcma_serial_port serial_ports[4]; | 570 | struct bcma_serial_port serial_ports[4]; |
569 | #endif /* CONFIG_BCMA_DRIVER_MIPS */ | 571 | #endif /* CONFIG_BCMA_DRIVER_MIPS */ |
572 | |||
573 | /* Lock for GPIO register access. */ | ||
574 | spinlock_t gpio_lock; | ||
575 | #ifdef CONFIG_BCMA_DRIVER_GPIO | ||
576 | struct gpio_chip gpio; | ||
577 | #endif | ||
570 | }; | 578 | }; |
571 | 579 | ||
572 | /* Register access */ | 580 | /* Register access */ |
@@ -603,6 +611,8 @@ u32 bcma_chipco_gpio_outen(struct bcma_drv_cc *cc, u32 mask, u32 value); | |||
603 | u32 bcma_chipco_gpio_control(struct bcma_drv_cc *cc, u32 mask, u32 value); | 611 | u32 bcma_chipco_gpio_control(struct bcma_drv_cc *cc, u32 mask, u32 value); |
604 | u32 bcma_chipco_gpio_intmask(struct bcma_drv_cc *cc, u32 mask, u32 value); | 612 | u32 bcma_chipco_gpio_intmask(struct bcma_drv_cc *cc, u32 mask, u32 value); |
605 | u32 bcma_chipco_gpio_polarity(struct bcma_drv_cc *cc, u32 mask, u32 value); | 613 | u32 bcma_chipco_gpio_polarity(struct bcma_drv_cc *cc, u32 mask, u32 value); |
614 | u32 bcma_chipco_gpio_pullup(struct bcma_drv_cc *cc, u32 mask, u32 value); | ||
615 | u32 bcma_chipco_gpio_pulldown(struct bcma_drv_cc *cc, u32 mask, u32 value); | ||
606 | 616 | ||
607 | /* PMU support */ | 617 | /* PMU support */ |
608 | extern void bcma_pmu_init(struct bcma_drv_cc *cc); | 618 | extern void bcma_pmu_init(struct bcma_drv_cc *cc); |
diff --git a/include/linux/ssb/ssb.h b/include/linux/ssb/ssb.h index bb674c02f306..3862a5bbd73b 100644 --- a/include/linux/ssb/ssb.h +++ b/include/linux/ssb/ssb.h | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <linux/types.h> | 6 | #include <linux/types.h> |
7 | #include <linux/spinlock.h> | 7 | #include <linux/spinlock.h> |
8 | #include <linux/pci.h> | 8 | #include <linux/pci.h> |
9 | #include <linux/gpio.h> | ||
9 | #include <linux/mod_devicetable.h> | 10 | #include <linux/mod_devicetable.h> |
10 | #include <linux/dma-mapping.h> | 11 | #include <linux/dma-mapping.h> |
11 | 12 | ||
@@ -433,6 +434,9 @@ struct ssb_bus { | |||
433 | /* Lock for GPIO register access. */ | 434 | /* Lock for GPIO register access. */ |
434 | spinlock_t gpio_lock; | 435 | spinlock_t gpio_lock; |
435 | #endif /* EMBEDDED */ | 436 | #endif /* EMBEDDED */ |
437 | #ifdef CONFIG_SSB_DRIVER_GPIO | ||
438 | struct gpio_chip gpio; | ||
439 | #endif /* DRIVER_GPIO */ | ||
436 | 440 | ||
437 | /* Internal-only stuff follows. Do not touch. */ | 441 | /* Internal-only stuff follows. Do not touch. */ |
438 | struct list_head list; | 442 | struct list_head list; |
diff --git a/include/linux/ssb/ssb_driver_chipcommon.h b/include/linux/ssb/ssb_driver_chipcommon.h index c2b02a5c86ae..30b694345d47 100644 --- a/include/linux/ssb/ssb_driver_chipcommon.h +++ b/include/linux/ssb/ssb_driver_chipcommon.h | |||
@@ -590,6 +590,7 @@ struct ssb_chipcommon { | |||
590 | u32 status; | 590 | u32 status; |
591 | /* Fast Powerup Delay constant */ | 591 | /* Fast Powerup Delay constant */ |
592 | u16 fast_pwrup_delay; | 592 | u16 fast_pwrup_delay; |
593 | spinlock_t gpio_lock; | ||
593 | struct ssb_chipcommon_pmu pmu; | 594 | struct ssb_chipcommon_pmu pmu; |
594 | }; | 595 | }; |
595 | 596 | ||
@@ -644,6 +645,8 @@ u32 ssb_chipco_gpio_outen(struct ssb_chipcommon *cc, u32 mask, u32 value); | |||
644 | u32 ssb_chipco_gpio_control(struct ssb_chipcommon *cc, u32 mask, u32 value); | 645 | u32 ssb_chipco_gpio_control(struct ssb_chipcommon *cc, u32 mask, u32 value); |
645 | u32 ssb_chipco_gpio_intmask(struct ssb_chipcommon *cc, u32 mask, u32 value); | 646 | u32 ssb_chipco_gpio_intmask(struct ssb_chipcommon *cc, u32 mask, u32 value); |
646 | u32 ssb_chipco_gpio_polarity(struct ssb_chipcommon *cc, u32 mask, u32 value); | 647 | u32 ssb_chipco_gpio_polarity(struct ssb_chipcommon *cc, u32 mask, u32 value); |
648 | u32 ssb_chipco_gpio_pullup(struct ssb_chipcommon *cc, u32 mask, u32 value); | ||
649 | u32 ssb_chipco_gpio_pulldown(struct ssb_chipcommon *cc, u32 mask, u32 value); | ||
647 | 650 | ||
648 | #ifdef CONFIG_SSB_SERIAL | 651 | #ifdef CONFIG_SSB_SERIAL |
649 | extern int ssb_chipco_serial_init(struct ssb_chipcommon *cc, | 652 | extern 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 91161f0aa22b..bd2306854a91 100644 --- a/include/linux/ssb/ssb_driver_extif.h +++ b/include/linux/ssb/ssb_driver_extif.h | |||
@@ -158,6 +158,7 @@ | |||
158 | 158 | ||
159 | struct ssb_extif { | 159 | struct ssb_extif { |
160 | struct ssb_device *dev; | 160 | struct ssb_device *dev; |
161 | spinlock_t gpio_lock; | ||
161 | }; | 162 | }; |
162 | 163 | ||
163 | static inline bool ssb_extif_available(struct ssb_extif *extif) | 164 | static inline bool ssb_extif_available(struct ssb_extif *extif) |