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
Kirill Smelkov
linux
Commits
10993374
Commit
10993374
authored
Apr 28, 2009
by
Russell King
Committed by
Russell King
Apr 28, 2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix' of
git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6
parents
a133e775
fc76132b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
54 additions
and
13 deletions
+54
-13
arch/arm/Kconfig
arch/arm/Kconfig
+0
-8
arch/arm/configs/viper_defconfig
arch/arm/configs/viper_defconfig
+0
-1
arch/arm/mach-pxa/corgi.c
arch/arm/mach-pxa/corgi.c
+10
-0
arch/arm/mach-pxa/littleton.c
arch/arm/mach-pxa/littleton.c
+9
-0
arch/arm/mach-pxa/spitz.c
arch/arm/mach-pxa/spitz.c
+10
-0
arch/arm/mach-pxa/zylonite_pxa300.c
arch/arm/mach-pxa/zylonite_pxa300.c
+5
-0
arch/arm/mach-pxa/zylonite_pxa320.c
arch/arm/mach-pxa/zylonite_pxa320.c
+1
-0
arch/arm/plat-pxa/gpio.c
arch/arm/plat-pxa/gpio.c
+19
-4
No files found.
arch/arm/Kconfig
View file @
10993374
...
...
@@ -486,8 +486,6 @@ config ARCH_PXA
select HAVE_CLK
select COMMON_CLKDEV
select ARCH_REQUIRE_GPIOLIB
select HAVE_CLK
select COMMON_CLKDEV
select GENERIC_TIME
select GENERIC_CLOCKEVENTS
select TICK_ONESHOT
...
...
@@ -1173,12 +1171,6 @@ config CPU_FREQ_IMX
If in doubt, say N.
config CPU_FREQ_PXA
bool
depends on CPU_FREQ && ARCH_PXA && PXA25x
default y
select CPU_FREQ_DEFAULT_GOV_USERSPACE
endif
source "drivers/cpuidle/Kconfig"
...
...
arch/arm/configs/viper_defconfig
View file @
10993374
...
...
@@ -298,7 +298,6 @@ CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=m
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
CONFIG_CPU_FREQ_PXA=y
#
# Floating point emulation
...
...
arch/arm/mach-pxa/corgi.c
View file @
10993374
...
...
@@ -427,12 +427,22 @@ static struct pxa2xx_spi_master corgi_spi_info = {
.
num_chipselect
=
3
,
};
static
void
corgi_wait_for_hsync
(
void
)
{
while
(
gpio_get_value
(
CORGI_GPIO_HSYNC
))
cpu_relax
();
while
(
!
gpio_get_value
(
CORGI_GPIO_HSYNC
))
cpu_relax
();
}
static
struct
ads7846_platform_data
corgi_ads7846_info
=
{
.
model
=
7846
,
.
vref_delay_usecs
=
100
,
.
x_plate_ohms
=
419
,
.
y_plate_ohms
=
486
,
.
gpio_pendown
=
CORGI_GPIO_TP_INT
,
.
wait_for_sync
=
corgi_wait_for_hsync
,
};
static
void
corgi_ads7846_cs
(
u32
command
)
...
...
arch/arm/mach-pxa/littleton.c
View file @
10993374
...
...
@@ -334,6 +334,11 @@ static struct led_info littleton_da9034_leds[] = {
},
};
static
struct
da9034_touch_pdata
littleton_da9034_touch
=
{
.
x_inverted
=
1
,
.
interval_ms
=
20
,
};
static
struct
da903x_subdev_info
littleton_da9034_subdevs
[]
=
{
{
.
name
=
"da903x-led"
,
...
...
@@ -350,6 +355,10 @@ static struct da903x_subdev_info littleton_da9034_subdevs[] = {
},
{
.
name
=
"da903x-backlight"
,
.
id
=
DA9034_ID_WLED
,
},
{
.
name
=
"da9034-touch"
,
.
id
=
DA9034_ID_TOUCH
,
.
platform_data
=
&
littleton_da9034_touch
,
},
};
...
...
arch/arm/mach-pxa/spitz.c
View file @
10993374
...
...
@@ -299,12 +299,22 @@ static struct pxa2xx_spi_master spitz_spi_info = {
.
num_chipselect
=
3
,
};
static
void
spitz_wait_for_hsync
(
void
)
{
while
(
gpio_get_value
(
SPITZ_GPIO_HSYNC
))
cpu_relax
();
while
(
!
gpio_get_value
(
SPITZ_GPIO_HSYNC
))
cpu_relax
();
}
static
struct
ads7846_platform_data
spitz_ads7846_info
=
{
.
model
=
7846
,
.
vref_delay_usecs
=
100
,
.
x_plate_ohms
=
419
,
.
y_plate_ohms
=
486
,
.
gpio_pendown
=
SPITZ_GPIO_TP_INT
,
.
wait_for_sync
=
spitz_wait_for_hsync
,
};
static
void
spitz_ads7846_cs
(
u32
command
)
...
...
arch/arm/mach-pxa/zylonite_pxa300.c
View file @
10993374
...
...
@@ -72,6 +72,7 @@ static mfp_cfg_t common_mfp_cfg[] __initdata = {
GPIO25_AC97_SDATA_IN_0
,
GPIO27_AC97_SDATA_OUT
,
GPIO28_AC97_SYNC
,
GPIO17_GPIO
,
/* SDATA_IN_1 but unused - configure to GPIO */
/* SSP3 */
GPIO91_SSP3_SCLK
,
...
...
@@ -126,6 +127,10 @@ static mfp_cfg_t common_mfp_cfg[] __initdata = {
/* Standard I2C */
GPIO21_I2C_SCL
,
GPIO22_I2C_SDA
,
/* GPIO */
GPIO18_GPIO
,
/* GPIO Expander #0 INT_N */
GPIO19_GPIO
,
/* GPIO Expander #1 INT_N */
};
static
mfp_cfg_t
pxa300_mfp_cfg
[]
__initdata
=
{
...
...
arch/arm/mach-pxa/zylonite_pxa320.c
View file @
10993374
...
...
@@ -68,6 +68,7 @@ static mfp_cfg_t mfp_cfg[] __initdata = {
GPIO38_AC97_SYNC
,
GPIO39_AC97_BITCLK
,
GPIO40_AC97_nACRESET
,
GPIO36_GPIO
,
/* SDATA_IN_1 but unused - configure to GPIO */
/* SSP3 */
GPIO89_SSP3_SCLK
,
...
...
arch/arm/plat-pxa/gpio.c
View file @
10993374
...
...
@@ -121,6 +121,8 @@ static int __init pxa_init_gpio_chip(int gpio_end)
return
-
ENOMEM
;
}
memset
(
chips
,
0
,
nbanks
*
sizeof
(
struct
pxa_gpio_chip
));
for
(
i
=
0
,
gpio
=
0
;
i
<
nbanks
;
i
++
,
gpio
+=
32
)
{
struct
gpio_chip
*
c
=
&
chips
[
i
].
chip
;
...
...
@@ -143,6 +145,21 @@ static int __init pxa_init_gpio_chip(int gpio_end)
return
0
;
}
/* Update only those GRERx and GFERx edge detection register bits if those
* bits are set in c->irq_mask
*/
static
inline
void
update_edge_detect
(
struct
pxa_gpio_chip
*
c
)
{
uint32_t
grer
,
gfer
;
grer
=
__raw_readl
(
c
->
regbase
+
GRER_OFFSET
)
&
~
c
->
irq_mask
;
gfer
=
__raw_readl
(
c
->
regbase
+
GFER_OFFSET
)
&
~
c
->
irq_mask
;
grer
|=
c
->
irq_edge_rise
&
c
->
irq_mask
;
gfer
|=
c
->
irq_edge_fall
&
c
->
irq_mask
;
__raw_writel
(
grer
,
c
->
regbase
+
GRER_OFFSET
);
__raw_writel
(
gfer
,
c
->
regbase
+
GFER_OFFSET
);
}
static
int
pxa_gpio_irq_type
(
unsigned
int
irq
,
unsigned
int
type
)
{
struct
pxa_gpio_chip
*
c
;
...
...
@@ -181,8 +198,7 @@ static int pxa_gpio_irq_type(unsigned int irq, unsigned int type)
else
c
->
irq_edge_fall
&=
~
mask
;
__raw_writel
(
c
->
irq_edge_rise
&
c
->
irq_mask
,
c
->
regbase
+
GRER_OFFSET
);
__raw_writel
(
c
->
irq_edge_fall
&
c
->
irq_mask
,
c
->
regbase
+
GFER_OFFSET
);
update_edge_detect
(
c
);
pr_debug
(
"%s: IRQ%d (GPIO%d) - edge%s%s
\n
"
,
__func__
,
irq
,
gpio
,
((
type
&
IRQ_TYPE_EDGE_RISING
)
?
" rising"
:
""
),
...
...
@@ -244,8 +260,7 @@ static void pxa_unmask_muxed_gpio(unsigned int irq)
struct
pxa_gpio_chip
*
c
=
gpio_to_chip
(
gpio
);
c
->
irq_mask
|=
GPIO_bit
(
gpio
);
__raw_writel
(
c
->
irq_edge_rise
&
c
->
irq_mask
,
c
->
regbase
+
GRER_OFFSET
);
__raw_writel
(
c
->
irq_edge_fall
&
c
->
irq_mask
,
c
->
regbase
+
GFER_OFFSET
);
update_edge_detect
(
c
);
}
static
struct
irq_chip
pxa_muxed_gpio_chip
=
{
...
...
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