Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
592acbda
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看板
提交
592acbda
编写于
3月 06, 2009
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh: multiple vectors per irq - sh770x.
Signed-off-by:
N
Paul Mundt
<
lethal@linux-sh.org
>
上级
053bfc53
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
21 addition
and
47 deletion
+21
-47
arch/sh/kernel/cpu/sh3/setup-sh770x.c
arch/sh/kernel/cpu/sh3/setup-sh770x.c
+21
-47
未找到文件。
arch/sh/kernel/cpu/sh3/setup-sh770x.c
浏览文件 @
592acbda
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
* SH3 Setup code for SH7706, SH7707, SH7708, SH7709
* SH3 Setup code for SH7706, SH7707, SH7708, SH7709
*
*
* Copyright (C) 2007 Magnus Damm
* Copyright (C) 2007 Magnus Damm
* Copyright (C) 2009 Paul Mundt
*
*
* Based on setup-sh7709.c
* Based on setup-sh7709.c
*
*
...
@@ -24,46 +25,37 @@ enum {
...
@@ -24,46 +25,37 @@ enum {
/* interrupt sources */
/* interrupt sources */
IRQ0
,
IRQ1
,
IRQ2
,
IRQ3
,
IRQ4
,
IRQ5
,
IRQ0
,
IRQ1
,
IRQ2
,
IRQ3
,
IRQ4
,
IRQ5
,
PINT07
,
PINT815
,
PINT07
,
PINT815
,
DMAC_DEI0
,
DMAC_DEI1
,
DMAC_DEI2
,
DMAC_DEI3
,
DMAC
,
SCIF0
,
SCIF2
,
SCI
,
ADC_ADI
,
SCIF0_ERI
,
SCIF0_RXI
,
SCIF0_BRI
,
SCIF0_TXI
,
SCIF2_ERI
,
SCIF2_RXI
,
SCIF2_BRI
,
SCIF2_TXI
,
SCI_ERI
,
SCI_RXI
,
SCI_TXI
,
SCI_TEI
,
ADC_ADI
,
LCDC
,
PCC0
,
PCC1
,
LCDC
,
PCC0
,
PCC1
,
TMU0
,
TMU1
,
TMU2_TUNI
,
TMU2_TICPI
,
TMU0
,
TMU1
,
TMU2
,
RTC_ATI
,
RTC_PRI
,
RTC_CUI
,
RTC
,
WDT
,
REF
,
WDT
,
REF_RCMI
,
REF_ROVI
,
/* interrupt groups */
RTC
,
REF
,
TMU2
,
DMAC
,
SCI
,
SCIF2
,
SCIF0
,
};
};
static
struct
intc_vect
vectors
[]
__initdata
=
{
static
struct
intc_vect
vectors
[]
__initdata
=
{
INTC_VECT
(
TMU0
,
0x400
),
INTC_VECT
(
TMU1
,
0x420
),
INTC_VECT
(
TMU0
,
0x400
),
INTC_VECT
(
TMU1
,
0x420
),
INTC_VECT
(
TMU2
_TUNI
,
0x440
),
INTC_VECT
(
TMU2_TICPI
,
0x460
),
INTC_VECT
(
TMU2
,
0x440
),
INTC_VECT
(
TMU2
,
0x460
),
INTC_VECT
(
RTC
_ATI
,
0x480
),
INTC_VECT
(
RTC_PRI
,
0x4a0
),
INTC_VECT
(
RTC
,
0x480
),
INTC_VECT
(
RTC
,
0x4a0
),
INTC_VECT
(
RTC
_CUI
,
0x4c0
),
INTC_VECT
(
RTC
,
0x4c0
),
INTC_VECT
(
SCI
_ERI
,
0x4e0
),
INTC_VECT
(
SCI_RX
I
,
0x500
),
INTC_VECT
(
SCI
,
0x4e0
),
INTC_VECT
(
SC
I
,
0x500
),
INTC_VECT
(
SCI
_TXI
,
0x520
),
INTC_VECT
(
SCI_TE
I
,
0x540
),
INTC_VECT
(
SCI
,
0x520
),
INTC_VECT
(
SC
I
,
0x540
),
INTC_VECT
(
WDT
,
0x560
),
INTC_VECT
(
WDT
,
0x560
),
INTC_VECT
(
REF
_RCMI
,
0x580
),
INTC_VECT
(
REF
,
0x580
),
INTC_VECT
(
REF
_ROVI
,
0x5a0
),
INTC_VECT
(
REF
,
0x5a0
),
#if defined(CONFIG_CPU_SUBTYPE_SH7706) || \
#if defined(CONFIG_CPU_SUBTYPE_SH7706) || \
defined(CONFIG_CPU_SUBTYPE_SH7707) || \
defined(CONFIG_CPU_SUBTYPE_SH7707) || \
defined(CONFIG_CPU_SUBTYPE_SH7709)
defined(CONFIG_CPU_SUBTYPE_SH7709)
/* IRQ0->5 are handled in setup-sh3.c */
/* IRQ0->5 are handled in setup-sh3.c */
INTC_VECT
(
DMAC
_DEI0
,
0x800
),
INTC_VECT
(
DMAC_DEI1
,
0x820
),
INTC_VECT
(
DMAC
,
0x800
),
INTC_VECT
(
DMAC
,
0x820
),
INTC_VECT
(
DMAC
_DEI2
,
0x840
),
INTC_VECT
(
DMAC_DEI3
,
0x860
),
INTC_VECT
(
DMAC
,
0x840
),
INTC_VECT
(
DMAC
,
0x860
),
INTC_VECT
(
ADC_ADI
,
0x980
),
INTC_VECT
(
ADC_ADI
,
0x980
),
INTC_VECT
(
SCIF2
_ERI
,
0x900
),
INTC_VECT
(
SCIF2_RXI
,
0x920
),
INTC_VECT
(
SCIF2
,
0x900
),
INTC_VECT
(
SCIF2
,
0x920
),
INTC_VECT
(
SCIF2
_BRI
,
0x940
),
INTC_VECT
(
SCIF2_TXI
,
0x960
),
INTC_VECT
(
SCIF2
,
0x940
),
INTC_VECT
(
SCIF2
,
0x960
),
#endif
#endif
#if defined(CONFIG_CPU_SUBTYPE_SH7707) || \
#if defined(CONFIG_CPU_SUBTYPE_SH7707) || \
defined(CONFIG_CPU_SUBTYPE_SH7709)
defined(CONFIG_CPU_SUBTYPE_SH7709)
INTC_VECT
(
PINT07
,
0x700
),
INTC_VECT
(
PINT815
,
0x720
),
INTC_VECT
(
PINT07
,
0x700
),
INTC_VECT
(
PINT815
,
0x720
),
INTC_VECT
(
SCIF0
_ERI
,
0x880
),
INTC_VECT
(
SCIF0_RXI
,
0x8a0
),
INTC_VECT
(
SCIF0
,
0x880
),
INTC_VECT
(
SCIF0
,
0x8a0
),
INTC_VECT
(
SCIF0
_BRI
,
0x8c0
),
INTC_VECT
(
SCIF0_TXI
,
0x8e0
),
INTC_VECT
(
SCIF0
,
0x8c0
),
INTC_VECT
(
SCIF0
,
0x8e0
),
#endif
#endif
#if defined(CONFIG_CPU_SUBTYPE_SH7707)
#if defined(CONFIG_CPU_SUBTYPE_SH7707)
INTC_VECT
(
LCDC
,
0x9a0
),
INTC_VECT
(
LCDC
,
0x9a0
),
...
@@ -71,16 +63,6 @@ static struct intc_vect vectors[] __initdata = {
...
@@ -71,16 +63,6 @@ static struct intc_vect vectors[] __initdata = {
#endif
#endif
};
};
static
struct
intc_group
groups
[]
__initdata
=
{
INTC_GROUP
(
RTC
,
RTC_ATI
,
RTC_PRI
,
RTC_CUI
),
INTC_GROUP
(
TMU2
,
TMU2_TUNI
,
TMU2_TICPI
),
INTC_GROUP
(
REF
,
REF_RCMI
,
REF_ROVI
),
INTC_GROUP
(
DMAC
,
DMAC_DEI0
,
DMAC_DEI1
,
DMAC_DEI2
,
DMAC_DEI3
),
INTC_GROUP
(
SCI
,
SCI_ERI
,
SCI_RXI
,
SCI_TXI
,
SCI_TEI
),
INTC_GROUP
(
SCIF0
,
SCIF0_ERI
,
SCIF0_RXI
,
SCIF0_BRI
,
SCIF0_TXI
),
INTC_GROUP
(
SCIF2
,
SCIF2_ERI
,
SCIF2_RXI
,
SCIF2_BRI
,
SCIF2_TXI
),
};
static
struct
intc_prio_reg
prio_registers
[]
__initdata
=
{
static
struct
intc_prio_reg
prio_registers
[]
__initdata
=
{
{
0xfffffee2
,
0
,
16
,
4
,
/* IPRA */
{
TMU0
,
TMU1
,
TMU2
,
RTC
}
},
{
0xfffffee2
,
0
,
16
,
4
,
/* IPRA */
{
TMU0
,
TMU1
,
TMU2
,
RTC
}
},
{
0xfffffee4
,
0
,
16
,
4
,
/* IPRB */
{
WDT
,
REF
,
SCI
,
0
}
},
{
0xfffffee4
,
0
,
16
,
4
,
/* IPRB */
{
WDT
,
REF
,
SCI
,
0
}
},
...
@@ -101,7 +83,7 @@ static struct intc_prio_reg prio_registers[] __initdata = {
...
@@ -101,7 +83,7 @@ static struct intc_prio_reg prio_registers[] __initdata = {
#endif
#endif
};
};
static
DECLARE_INTC_DESC
(
intc_desc
,
"sh770x"
,
vectors
,
groups
,
static
DECLARE_INTC_DESC
(
intc_desc
,
"sh770x"
,
vectors
,
NULL
,
NULL
,
prio_registers
,
NULL
);
NULL
,
prio_registers
,
NULL
);
static
struct
resource
rtc_resources
[]
=
{
static
struct
resource
rtc_resources
[]
=
{
...
@@ -111,14 +93,6 @@ static struct resource rtc_resources[] = {
...
@@ -111,14 +93,6 @@ static struct resource rtc_resources[] = {
.
flags
=
IORESOURCE_IO
,
.
flags
=
IORESOURCE_IO
,
},
},
[
1
]
=
{
[
1
]
=
{
.
start
=
21
,
.
flags
=
IORESOURCE_IRQ
,
},
[
2
]
=
{
.
start
=
22
,
.
flags
=
IORESOURCE_IRQ
,
},
[
3
]
=
{
.
start
=
20
,
.
start
=
20
,
.
flags
=
IORESOURCE_IRQ
,
.
flags
=
IORESOURCE_IRQ
,
},
},
...
@@ -136,7 +110,7 @@ static struct plat_sci_port sci_platform_data[] = {
...
@@ -136,7 +110,7 @@ static struct plat_sci_port sci_platform_data[] = {
.
mapbase
=
0xfffffe80
,
.
mapbase
=
0xfffffe80
,
.
flags
=
UPF_BOOT_AUTOCONF
,
.
flags
=
UPF_BOOT_AUTOCONF
,
.
type
=
PORT_SCI
,
.
type
=
PORT_SCI
,
.
irqs
=
{
23
,
2
4
,
25
,
0
},
.
irqs
=
{
23
,
2
3
,
23
,
0
},
},
},
#if defined(CONFIG_CPU_SUBTYPE_SH7706) || \
#if defined(CONFIG_CPU_SUBTYPE_SH7706) || \
defined(CONFIG_CPU_SUBTYPE_SH7707) || \
defined(CONFIG_CPU_SUBTYPE_SH7707) || \
...
@@ -145,7 +119,7 @@ static struct plat_sci_port sci_platform_data[] = {
...
@@ -145,7 +119,7 @@ static struct plat_sci_port sci_platform_data[] = {
.
mapbase
=
0xa4000150
,
.
mapbase
=
0xa4000150
,
.
flags
=
UPF_BOOT_AUTOCONF
,
.
flags
=
UPF_BOOT_AUTOCONF
,
.
type
=
PORT_SCIF
,
.
type
=
PORT_SCIF
,
.
irqs
=
{
56
,
5
7
,
59
,
58
},
.
irqs
=
{
56
,
5
6
,
56
,
56
},
},
},
#endif
#endif
#if defined(CONFIG_CPU_SUBTYPE_SH7707) || \
#if defined(CONFIG_CPU_SUBTYPE_SH7707) || \
...
@@ -154,7 +128,7 @@ static struct plat_sci_port sci_platform_data[] = {
...
@@ -154,7 +128,7 @@ static struct plat_sci_port sci_platform_data[] = {
.
mapbase
=
0xa4000140
,
.
mapbase
=
0xa4000140
,
.
flags
=
UPF_BOOT_AUTOCONF
,
.
flags
=
UPF_BOOT_AUTOCONF
,
.
type
=
PORT_IRDA
,
.
type
=
PORT_IRDA
,
.
irqs
=
{
52
,
5
3
,
55
,
54
},
.
irqs
=
{
52
,
5
2
,
52
,
52
},
},
},
#endif
#endif
{
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录