Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272517
b: refs/heads/master
c: 7e6c53a
h: refs/heads/master
i:
  272515: b670782
v: v3
  • Loading branch information
Shawn Guo authored and Sascha Hauer committed Aug 17, 2011
1 parent 99debd5 commit 4a5df4d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 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: 1dfa86bb9d3fe7581d3182c24a812c8910cbee37
refs/heads/master: 7e6c53aac38eec4e7bca1e4e9a5a6d7e45b30784
2 changes: 0 additions & 2 deletions trunk/arch/arm/mach-mxs/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,4 @@
#define gpio_cansleep __gpio_cansleep
#define gpio_to_irq __gpio_to_irq

#define irq_to_gpio(irq) ((irq) - MXS_GPIO_IRQ_START)

#endif /* __MACH_MXS_GPIO_H__ */
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-mxs/include/mach/mxs.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
.type = _type, \
}

#define MXS_GPIO_NR(bank, nr) ((bank) * 32 + (nr))

#define MXS_SET_ADDR 0x4
#define MXS_CLR_ADDR 0x8
#define MXS_TOG_ADDR 0xc
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/gpio/gpio-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
#define GPIO_INT_LEV_MASK (1 << 0)
#define GPIO_INT_POL_MASK (1 << 1)

#define irq_to_gpio(irq) ((irq) - MXS_GPIO_IRQ_START)

struct mxs_gpio_port {
void __iomem *base;
int id;
Expand Down

0 comments on commit 4a5df4d

Please sign in to comment.