Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
8d6c1efa
cloud-kernel
项目概览
openanolis
/
cloud-kernel
接近 2 年 前同步成功
通知
169
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8d6c1efa
编写于
5月 20, 2012
作者:
G
Grant Likely
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'devicetree/merge' into devicetree/next
上级
36793623
0a68214b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
43 addition
and
4 deletion
+43
-4
Documentation/devicetree/bindings/arm/gic.txt
Documentation/devicetree/bindings/arm/gic.txt
+33
-2
include/linux/of_irq.h
include/linux/of_irq.h
+10
-2
未找到文件。
Documentation/devicetree/bindings/arm/gic.txt
浏览文件 @
8d6c1efa
...
@@ -11,7 +11,9 @@ have PPIs or SGIs.
...
@@ -11,7 +11,9 @@ have PPIs or SGIs.
Main node required properties:
Main node required properties:
- compatible : should be one of:
- compatible : should be one of:
"arm,cortex-a15-gic"
"arm,cortex-a9-gic"
"arm,cortex-a9-gic"
"arm,cortex-a7-gic"
"arm,arm11mp-gic"
"arm,arm11mp-gic"
- interrupt-controller : Identifies the node as an interrupt controller
- interrupt-controller : Identifies the node as an interrupt controller
- #interrupt-cells : Specifies the number of cells needed to encode an
- #interrupt-cells : Specifies the number of cells needed to encode an
...
@@ -39,8 +41,9 @@ Main node required properties:
...
@@ -39,8 +41,9 @@ Main node required properties:
the GIC cpu interface register base and size.
the GIC cpu interface register base and size.
Optional
Optional
- interrupts : Interrupt source of the parent interrupt controller. Only
- interrupts : Interrupt source of the parent interrupt controller on
present on secondary GICs.
secondary GICs, or VGIC maintainance interrupt on primary GIC (see
below).
- cpu-offset : per-cpu offset within the distributor and cpu interface
- cpu-offset : per-cpu offset within the distributor and cpu interface
regions, used when the GIC doesn't have banked registers. The offset is
regions, used when the GIC doesn't have banked registers. The offset is
...
@@ -57,3 +60,31 @@ Example:
...
@@ -57,3 +60,31 @@ Example:
<0xfff10100 0x100>;
<0xfff10100 0x100>;
};
};
* GIC virtualization extensions (VGIC)
For ARM cores that support the virtualization extensions, additional
properties must be described (they only exist if the GIC is the
primary interrupt controller).
Required properties:
- reg : Additional regions specifying the base physical address and
size of the VGIC registers. The first additional region is the GIC
virtual interface control register base and size. The 2nd additional
region is the GIC virtual cpu interface register base and size.
- interrupts : VGIC maintainance interrupt.
Example:
interrupt-controller@2c001000 {
compatible = "arm,cortex-a15-gic";
#interrupt-cells = <3>;
interrupt-controller;
reg = <0x2c001000 0x1000>,
<0x2c002000 0x1000>,
<0x2c004000 0x2000>,
<0x2c006000 0x2000>;
interrupts = <1 9 0xf04>;
};
include/linux/of_irq.h
浏览文件 @
8d6c1efa
...
@@ -11,7 +11,7 @@ struct of_irq;
...
@@ -11,7 +11,7 @@ struct of_irq;
#include <linux/of.h>
#include <linux/of.h>
/*
/*
* irq_of_parse_and_map() is used b
a
all OF enabled platforms; but SPARC
* irq_of_parse_and_map() is used b
y
all OF enabled platforms; but SPARC
* implements it differently. However, the prototype is the same for all,
* implements it differently. However, the prototype is the same for all,
* so declare it here regardless of the CONFIG_OF_IRQ setting.
* so declare it here regardless of the CONFIG_OF_IRQ setting.
*/
*/
...
@@ -76,5 +76,13 @@ extern struct device_node *of_irq_find_parent(struct device_node *child);
...
@@ -76,5 +76,13 @@ extern struct device_node *of_irq_find_parent(struct device_node *child);
extern
void
of_irq_init
(
const
struct
of_device_id
*
matches
);
extern
void
of_irq_init
(
const
struct
of_device_id
*
matches
);
#endif
/* CONFIG_OF_IRQ */
#endif
/* CONFIG_OF_IRQ */
#endif
/* CONFIG_OF */
#else
/* !CONFIG_OF */
static
inline
unsigned
int
irq_of_parse_and_map
(
struct
device_node
*
dev
,
int
index
)
{
return
0
;
}
#endif
/* !CONFIG_OF */
#endif
/* __OF_IRQ_H */
#endif
/* __OF_IRQ_H */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录