Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275489
b: refs/heads/master
c: df55a66
h: refs/heads/master
i:
  275487: e39b541
v: v3
  • Loading branch information
Florian Fainelli authored and Ralf Baechle committed Nov 8, 2011
1 parent 4dae0c2 commit f805cfa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 798580815126c899616146f286d5cc259abb5e16
refs/heads/master: df55a66addf87bc21ef5678bea238f2c1b2db48a
18 changes: 15 additions & 3 deletions trunk/arch/mips/include/asm/mach-bcm47xx/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ static inline int gpio_get_value(unsigned gpio)
return -EINVAL;
}

#define gpio_get_value_cansleep gpio_get_value

static inline void gpio_set_value(unsigned gpio, int value)
{
switch (bcm47xx_bus_type) {
Expand All @@ -54,6 +56,19 @@ static inline void gpio_set_value(unsigned gpio, int value)
}
}

#define gpio_set_value_cansleep gpio_set_value

static inline int gpio_cansleep(unsigned gpio)
{
return 0;
}

static inline int gpio_is_valid(unsigned gpio)
{
return gpio < (BCM47XX_EXTIF_GPIO_LINES + BCM47XX_CHIPCO_GPIO_LINES);
}


static inline int gpio_direction_input(unsigned gpio)
{
switch (bcm47xx_bus_type) {
Expand Down Expand Up @@ -137,7 +152,4 @@ static inline int gpio_polarity(unsigned gpio, int value)
}


/* cansleep wrappers */
#include <asm-generic/gpio.h>

#endif /* __BCM47XX_GPIO_H */

0 comments on commit f805cfa

Please sign in to comment.