Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
c971ab0d
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看板
提交
c971ab0d
编写于
11月 29, 2010
作者:
L
Lennert Buytenhek
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: h720x: irq_data conversion.
Signed-off-by:
N
Lennert Buytenhek
<
buytenh@secretlab.ca
>
上级
413802b6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
26 addition
and
26 deletion
+26
-26
arch/arm/mach-h720x/common.c
arch/arm/mach-h720x/common.c
+19
-19
arch/arm/mach-h720x/cpu-h7202.c
arch/arm/mach-h720x/cpu-h7202.c
+7
-7
未找到文件。
arch/arm/mach-h720x/common.c
浏览文件 @
c971ab0d
...
...
@@ -52,17 +52,17 @@ unsigned long h720x_gettimeoffset(void)
/*
* mask Global irq's
*/
static
void
mask_global_irq
(
unsigned
int
irq
)
static
void
mask_global_irq
(
struct
irq_data
*
d
)
{
CPU_REG
(
IRQC_VIRT
,
IRQC_IER
)
&=
~
(
1
<<
irq
);
CPU_REG
(
IRQC_VIRT
,
IRQC_IER
)
&=
~
(
1
<<
d
->
irq
);
}
/*
* unmask Global irq's
*/
static
void
unmask_global_irq
(
unsigned
int
irq
)
static
void
unmask_global_irq
(
struct
irq_data
*
d
)
{
CPU_REG
(
IRQC_VIRT
,
IRQC_IER
)
|=
(
1
<<
irq
);
CPU_REG
(
IRQC_VIRT
,
IRQC_IER
)
|=
(
1
<<
d
->
irq
);
}
...
...
@@ -70,10 +70,10 @@ static void unmask_global_irq (unsigned int irq )
* ack GPIO irq's
* Ack only for edge triggered int's valid
*/
static
void
inline
ack_gpio_irq
(
u32
irq
)
static
void
inline
ack_gpio_irq
(
struct
irq_data
*
d
)
{
u32
reg_base
=
GPIO_VIRT
(
IRQ_TO_REGNO
(
irq
));
u32
bit
=
IRQ_TO_BIT
(
irq
);
u32
reg_base
=
GPIO_VIRT
(
IRQ_TO_REGNO
(
d
->
irq
));
u32
bit
=
IRQ_TO_BIT
(
d
->
irq
);
if
(
(
CPU_REG
(
reg_base
,
GPIO_EDGE
)
&
bit
))
CPU_REG
(
reg_base
,
GPIO_CLR
)
=
bit
;
}
...
...
@@ -81,20 +81,20 @@ static void inline ack_gpio_irq(u32 irq)
/*
* mask GPIO irq's
*/
static
void
inline
mask_gpio_irq
(
u32
irq
)
static
void
inline
mask_gpio_irq
(
struct
irq_data
*
d
)
{
u32
reg_base
=
GPIO_VIRT
(
IRQ_TO_REGNO
(
irq
));
u32
bit
=
IRQ_TO_BIT
(
irq
);
u32
reg_base
=
GPIO_VIRT
(
IRQ_TO_REGNO
(
d
->
irq
));
u32
bit
=
IRQ_TO_BIT
(
d
->
irq
);
CPU_REG
(
reg_base
,
GPIO_MASK
)
&=
~
bit
;
}
/*
* unmask GPIO irq's
*/
static
void
inline
unmask_gpio_irq
(
u32
irq
)
static
void
inline
unmask_gpio_irq
(
struct
irq_data
*
d
)
{
u32
reg_base
=
GPIO_VIRT
(
IRQ_TO_REGNO
(
irq
));
u32
bit
=
IRQ_TO_BIT
(
irq
);
u32
reg_base
=
GPIO_VIRT
(
IRQ_TO_REGNO
(
d
->
irq
));
u32
bit
=
IRQ_TO_BIT
(
d
->
irq
);
CPU_REG
(
reg_base
,
GPIO_MASK
)
|=
bit
;
}
...
...
@@ -170,15 +170,15 @@ h720x_gpioe_demux_handler(unsigned int irq_unused, struct irq_desc *desc)
#endif
static
struct
irq_chip
h720x_global_chip
=
{
.
ack
=
mask_global_irq
,
.
mask
=
mask_global_irq
,
.
unmask
=
unmask_global_irq
,
.
irq_
ack
=
mask_global_irq
,
.
irq_
mask
=
mask_global_irq
,
.
irq_
unmask
=
unmask_global_irq
,
};
static
struct
irq_chip
h720x_gpio_chip
=
{
.
ack
=
ack_gpio_irq
,
.
mask
=
mask_gpio_irq
,
.
unmask
=
unmask_gpio_irq
,
.
irq_
ack
=
ack_gpio_irq
,
.
irq_
mask
=
mask_gpio_irq
,
.
irq_
unmask
=
unmask_gpio_irq
,
};
/*
...
...
arch/arm/mach-h720x/cpu-h7202.c
浏览文件 @
c971ab0d
...
...
@@ -141,27 +141,27 @@ h7202_timer_interrupt(int irq, void *dev_id)
/*
* mask multiplexed timer IRQs
*/
static
void
inline
mask_timerx_irq
(
u32
irq
)
static
void
inline
mask_timerx_irq
(
struct
irq_data
*
d
)
{
unsigned
int
bit
;
bit
=
2
<<
((
irq
==
IRQ_TIMER64B
)
?
4
:
(
irq
-
IRQ_TIMER1
));
bit
=
2
<<
((
d
->
irq
==
IRQ_TIMER64B
)
?
4
:
(
d
->
irq
-
IRQ_TIMER1
));
CPU_REG
(
TIMER_VIRT
,
TIMER_TOPCTRL
)
&=
~
bit
;
}
/*
* unmask multiplexed timer IRQs
*/
static
void
inline
unmask_timerx_irq
(
u32
irq
)
static
void
inline
unmask_timerx_irq
(
struct
irq_data
*
d
)
{
unsigned
int
bit
;
bit
=
2
<<
((
irq
==
IRQ_TIMER64B
)
?
4
:
(
irq
-
IRQ_TIMER1
));
bit
=
2
<<
((
d
->
irq
==
IRQ_TIMER64B
)
?
4
:
(
d
->
irq
-
IRQ_TIMER1
));
CPU_REG
(
TIMER_VIRT
,
TIMER_TOPCTRL
)
|=
bit
;
}
static
struct
irq_chip
h7202_timerx_chip
=
{
.
ack
=
mask_timerx_irq
,
.
mask
=
mask_timerx_irq
,
.
unmask
=
unmask_timerx_irq
,
.
irq_
ack
=
mask_timerx_irq
,
.
irq_
mask
=
mask_timerx_irq
,
.
irq_
unmask
=
unmask_timerx_irq
,
};
static
struct
irqaction
h7202_timer_irq
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录