Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
3b8e285c
Commit
3b8e285c
authored
Jan 07, 2009
by
Eric Miao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] pxa: move declaration of 'pxa_last_gpio' into <mach/gpio.h>
Signed-off-by:
Eric Miao
<
eric.miao@marvell.com
>
parent
da065a0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
arch/arm/mach-pxa/generic.h
arch/arm/mach-pxa/generic.h
+0
-1
arch/arm/mach-pxa/gpio.c
arch/arm/mach-pxa/gpio.c
+2
-2
arch/arm/mach-pxa/include/mach/gpio.h
arch/arm/mach-pxa/include/mach/gpio.h
+4
-1
No files found.
arch/arm/mach-pxa/generic.h
View file @
3b8e285c
...
...
@@ -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), \
...
...
arch/arm/mach-pxa/gpio.c
View file @
3b8e285c
...
...
@@ -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)
...
...
@@ -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
;
...
...
arch/arm/mach-pxa/include/mach/gpio.h
View file @
3b8e285c
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment