Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
a1dc4b59
K
Kernel
项目概览
openeuler
/
Kernel
接近 2 年 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
a1dc4b59
编写于
4月 25, 2008
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh: intc_sh5 depends on cayman board for IRQ priority table.
Signed-off-by:
N
Paul Mundt
<
lethal@linux-sh.org
>
上级
105eabfd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
38 addition
and
35 deletion
+38
-35
arch/sh/kernel/cpu/irq/intc-sh5.c
arch/sh/kernel/cpu/irq/intc-sh5.c
+38
-35
未找到文件。
arch/sh/kernel/cpu/irq/intc-sh5.c
浏览文件 @
a1dc4b59
...
...
@@ -184,9 +184,8 @@ int intc_irq_describe(char* p, int irq)
void
__init
plat_irq_setup
(
void
)
{
unsigned
long
long
__dummy0
,
__dummy1
=~
0x00000000100000f0
;
unsigned
long
long
__dummy0
,
__dummy1
=~
0x00000000100000f0
;
unsigned
long
reg
;
unsigned
long
data
;
int
i
;
intc_virt
=
onchip_remap
(
INTC_BASE
,
1024
,
"INTC"
);
...
...
@@ -196,11 +195,8 @@ void __init plat_irq_setup(void)
/* Set default: per-line enable/disable, priority driven ack/eoi */
for
(
i
=
0
;
i
<
NR_INTC_IRQS
;
i
++
)
{
if
(
platform_int_priority
[
i
]
!=
NO_PRIORITY
)
{
irq_desc
[
i
].
chip
=
&
intc_irq_type
;
}
}
for
(
i
=
0
;
i
<
NR_INTC_IRQS
;
i
++
)
irq_desc
[
i
].
chip
=
&
intc_irq_type
;
/* Disable all interrupts and set all priorities to 0 to avoid trouble */
...
...
@@ -211,35 +207,42 @@ void __init plat_irq_setup(void)
ctrl_outl
(
NO_PRIORITY
,
reg
);
/* Set IRLM */
/* If all the priorities are set to 'no priority', then
* assume we are using encoded mode.
*/
irlm
=
platform_int_priority
[
IRQ_IRL0
]
+
platform_int_priority
[
IRQ_IRL1
]
+
\
platform_int_priority
[
IRQ_IRL2
]
+
platform_int_priority
[
IRQ_IRL3
];
if
(
irlm
==
NO_PRIORITY
)
{
/* IRLM = 0 */
reg
=
INTC_ICR_CLEAR
;
i
=
IRQ_INTA
;
printk
(
"Trying to use encoded IRL0-3. IRLs unsupported.
\n
"
);
}
else
{
/* IRLM = 1 */
reg
=
INTC_ICR_SET
;
i
=
IRQ_IRL0
;
}
ctrl_outl
(
INTC_ICR_IRLM
,
reg
);
/* Set interrupt priorities according to platform description */
for
(
data
=
0
,
reg
=
INTC_INTPRI_0
;
i
<
NR_INTC_IRQS
;
i
++
)
{
data
|=
platform_int_priority
[
i
]
<<
((
i
%
INTC_INTPRI_PPREG
)
*
4
);
if
((
i
%
INTC_INTPRI_PPREG
)
==
(
INTC_INTPRI_PPREG
-
1
))
{
/* Upon the 7th, set Priority Register */
ctrl_outl
(
data
,
reg
);
data
=
0
;
reg
+=
8
;
#ifdef CONFIG_SH_CAYMAN
{
unsigned
long
data
;
/* Set IRLM */
/* If all the priorities are set to 'no priority', then
* assume we are using encoded mode.
*/
irlm
=
platform_int_priority
[
IRQ_IRL0
]
+
platform_int_priority
[
IRQ_IRL1
]
+
platform_int_priority
[
IRQ_IRL2
]
+
platform_int_priority
[
IRQ_IRL3
];
if
(
irlm
==
NO_PRIORITY
)
{
/* IRLM = 0 */
reg
=
INTC_ICR_CLEAR
;
i
=
IRQ_INTA
;
printk
(
"Trying to use encoded IRL0-3. IRLs unsupported.
\n
"
);
}
else
{
/* IRLM = 1 */
reg
=
INTC_ICR_SET
;
i
=
IRQ_IRL0
;
}
}
ctrl_outl
(
INTC_ICR_IRLM
,
reg
);
/* Set interrupt priorities according to platform description */
for
(
data
=
0
,
reg
=
INTC_INTPRI_0
;
i
<
NR_INTC_IRQS
;
i
++
)
{
data
|=
platform_int_priority
[
i
]
<<
((
i
%
INTC_INTPRI_PPREG
)
*
4
);
if
((
i
%
INTC_INTPRI_PPREG
)
==
(
INTC_INTPRI_PPREG
-
1
))
{
/* Upon the 7th, set Priority Register */
ctrl_outl
(
data
,
reg
);
data
=
0
;
reg
+=
8
;
}
}
#endif
/*
* And now let interrupts come in.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录