Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137191
b: refs/heads/master
c: 3b8e285
h: refs/heads/master
i:
  137189: 8d07290
  137187: 53c196b
  137183: 9f98e49
v: v3
  • Loading branch information
Eric Miao committed Mar 9, 2009
1 parent aab3eb9 commit 14f0ab3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 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: da065a0b3611751feefeb0f0e277cd5830056dad
refs/heads/master: 3b8e285c21d12082a85a142ef73a1648d41cae46
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-pxa/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ extern void __init pxa3xx_init_irq(void);
extern void __init pxa_map_io(void);

extern unsigned int get_clk_frequency_khz(int info);
extern int pxa_last_gpio;

#define SET_BANK(__nr,__start,__size) \
mi->bank[__nr].start = (__start), \
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-pxa/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

#include <mach/gpio.h>

int pxa_last_gpio;

#define GPIO0_BASE (GPIO_REGS_VIRT + 0x0000)
#define GPIO1_BASE (GPIO_REGS_VIRT + 0x0004)
#define GPIO2_BASE (GPIO_REGS_VIRT + 0x0008)
Expand All @@ -38,8 +40,6 @@ struct pxa_gpio_chip {
void __iomem *regbase;
};

int pxa_last_gpio;

static int pxa_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
{
unsigned long flags;
Expand Down
5 changes: 4 additions & 1 deletion trunk/arch/arm/mach-pxa/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@


/* NOTE: some PXAs have fewer on-chip GPIOs (like PXA255, with 85).
* Those cases currently cause holes in the GPIO number space.
* Those cases currently cause holes in the GPIO number space, the
* actual number of the last GPIO is recorded by 'pxa_last_gpio'.
*/
extern int pxa_last_gpio;

#define NR_BUILTIN_GPIO 128

static inline int gpio_get_value(unsigned gpio)
Expand Down

0 comments on commit 14f0ab3

Please sign in to comment.