Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
10993374
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
10993374
编写于
4月 28, 2009
作者:
R
Russell King
提交者:
Russell King
4月 28, 2009
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'fix' of
git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6
上级
a133e775
fc76132b
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
54 addition
and
13 deletion
+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
未找到文件。
arch/arm/Kconfig
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录