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
b1d9bf1d
Commit
b1d9bf1d
authored
Apr 27, 2010
by
Eric Miao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] pxa: remove pxa_gpio_mode() and files
Signed-off-by:
Eric Miao
<
eric.y.miao@gmail.com
>
parent
25646d70
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
407 deletions
+0
-407
arch/arm/mach-pxa/generic.c
arch/arm/mach-pxa/generic.c
+0
-31
arch/arm/mach-pxa/include/mach/pxa2xx-gpio.h
arch/arm/mach-pxa/include/mach/pxa2xx-gpio.h
+0
-375
arch/arm/mach-pxa/sharpsl_pm.c
arch/arm/mach-pxa/sharpsl_pm.c
+0
-1
No files found.
arch/arm/mach-pxa/generic.c
View file @
b1d9bf1d
...
...
@@ -28,7 +28,6 @@
#include <mach/reset.h>
#include <mach/gpio.h>
#include <mach/pxa2xx-gpio.h>
#include "generic.h"
...
...
@@ -128,33 +127,3 @@ void __init pxa_map_io(void)
iotable_init
(
standard_io_desc
,
ARRAY_SIZE
(
standard_io_desc
));
get_clk_frequency_khz
(
1
);
}
/*
* Configure pins for GPIO or other functions
*/
int
pxa_gpio_mode
(
int
gpio_mode
)
{
unsigned
long
flags
;
int
gpio
=
gpio_mode
&
GPIO_MD_MASK_NR
;
int
fn
=
(
gpio_mode
&
GPIO_MD_MASK_FN
)
>>
8
;
int
gafr
;
if
(
gpio
>
pxa_last_gpio
)
return
-
EINVAL
;
local_irq_save
(
flags
);
if
(
gpio_mode
&
GPIO_DFLT_LOW
)
GPCR
(
gpio
)
=
GPIO_bit
(
gpio
);
else
if
(
gpio_mode
&
GPIO_DFLT_HIGH
)
GPSR
(
gpio
)
=
GPIO_bit
(
gpio
);
if
(
gpio_mode
&
GPIO_MD_MASK_DIR
)
GPDR
(
gpio
)
|=
GPIO_bit
(
gpio
);
else
GPDR
(
gpio
)
&=
~
GPIO_bit
(
gpio
);
gafr
=
GAFR
(
gpio
)
&
~
(
0x3
<<
(((
gpio
)
&
0xf
)
*
2
));
GAFR
(
gpio
)
=
gafr
|
(
fn
<<
(((
gpio
)
&
0xf
)
*
2
));
local_irq_restore
(
flags
);
return
0
;
}
EXPORT_SYMBOL
(
pxa_gpio_mode
);
arch/arm/mach-pxa/include/mach/pxa2xx-gpio.h
deleted
100644 → 0
View file @
25646d70
This diff is collapsed.
Click to expand it.
arch/arm/mach-pxa/sharpsl_pm.c
View file @
b1d9bf1d
...
...
@@ -28,7 +28,6 @@
#include <asm/mach-types.h>
#include <mach/pm.h>
#include <mach/pxa2xx-regs.h>
#include <mach/pxa2xx-gpio.h>
#include <mach/regs-rtc.h>
#include <mach/sharpsl.h>
#include <mach/sharpsl_pm.h>
...
...
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