Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
a4485b54
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
a4485b54
编写于
7月 05, 2017
作者:
R
Rob Herring
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dt/property-move' into dt/next
上级
5e1743c0
b8ba92b1
变更
5
展开全部
显示空白变更内容
内联
并排
Showing
5 changed file
with
850 addition
and
744 deletion
+850
-744
drivers/of/Makefile
drivers/of/Makefile
+1
-1
drivers/of/base.c
drivers/of/base.c
+2
-733
drivers/of/property.c
drivers/of/property.c
+806
-0
include/linux/of.h
include/linux/of.h
+20
-10
include/linux/of_graph.h
include/linux/of_graph.h
+21
-0
未找到文件。
drivers/of/Makefile
浏览文件 @
a4485b54
obj-y
=
base.o device.o platform.o
obj-y
=
base.o device.o platform.o
property.o
obj-$(CONFIG_OF_DYNAMIC)
+=
dynamic.o
obj-$(CONFIG_OF_FLATTREE)
+=
fdt.o
obj-$(CONFIG_OF_EARLY_FLATTREE)
+=
fdt_address.o
...
...
drivers/of/base.c
浏览文件 @
a4485b54
此差异已折叠。
点击以展开。
drivers/of/property.c
0 → 100644
浏览文件 @
a4485b54
此差异已折叠。
点击以展开。
include/linux/of.h
浏览文件 @
a4485b54
...
...
@@ -148,18 +148,28 @@ extern raw_spinlock_t devtree_lock;
#ifdef CONFIG_OF
void
of_core_init
(
void
);
static
inline
bool
is_of_node
(
struct
fwnode_handle
*
fwnode
)
static
inline
bool
is_of_node
(
const
struct
fwnode_handle
*
fwnode
)
{
return
!
IS_ERR_OR_NULL
(
fwnode
)
&&
fwnode
->
type
==
FWNODE_OF
;
}
static
inline
struct
device_node
*
to_of_node
(
struct
fwnode_handle
*
fwnode
)
{
return
is_of_node
(
fwnode
)
?
container_of
(
fwnode
,
struct
device_node
,
fwnode
)
:
NULL
;
}
#define of_fwnode_handle(node) (&(node)->fwnode)
#define to_of_node(__fwnode) \
({ \
typeof(__fwnode) __to_of_node_fwnode = (__fwnode); \
\
is_of_node(__to_of_node_fwnode) ? \
container_of(__to_of_node_fwnode, \
struct device_node, fwnode) : \
NULL; \
})
#define of_fwnode_handle(node) \
({ \
typeof(node) __of_fwnode_handle_node = (node); \
\
__of_fwnode_handle_node ? \
&__of_fwnode_handle_node->fwnode : NULL; \
})
static
inline
bool
of_have_populated_dt
(
void
)
{
...
...
@@ -533,12 +543,12 @@ static inline void of_core_init(void)
{
}
static
inline
bool
is_of_node
(
struct
fwnode_handle
*
fwnode
)
static
inline
bool
is_of_node
(
const
struct
fwnode_handle
*
fwnode
)
{
return
false
;
}
static
inline
struct
device_node
*
to_of_node
(
struct
fwnode_handle
*
fwnode
)
static
inline
struct
device_node
*
to_of_node
(
const
struct
fwnode_handle
*
fwnode
)
{
return
NULL
;
}
...
...
include/linux/of_graph.h
浏览文件 @
a4485b54
...
...
@@ -43,11 +43,15 @@ struct of_endpoint {
#ifdef CONFIG_OF
int
of_graph_parse_endpoint
(
const
struct
device_node
*
node
,
struct
of_endpoint
*
endpoint
);
int
of_graph_get_endpoint_count
(
const
struct
device_node
*
np
);
struct
device_node
*
of_graph_get_port_by_id
(
struct
device_node
*
node
,
u32
id
);
struct
device_node
*
of_graph_get_next_endpoint
(
const
struct
device_node
*
parent
,
struct
device_node
*
previous
);
struct
device_node
*
of_graph_get_endpoint_by_regs
(
const
struct
device_node
*
parent
,
int
port_reg
,
int
reg
);
struct
device_node
*
of_graph_get_remote_endpoint
(
const
struct
device_node
*
node
);
struct
device_node
*
of_graph_get_port_parent
(
struct
device_node
*
node
);
struct
device_node
*
of_graph_get_remote_port_parent
(
const
struct
device_node
*
node
);
struct
device_node
*
of_graph_get_remote_port
(
const
struct
device_node
*
node
);
...
...
@@ -61,6 +65,11 @@ static inline int of_graph_parse_endpoint(const struct device_node *node,
return
-
ENOSYS
;
}
static
inline
int
of_graph_get_endpoint_count
(
const
struct
device_node
*
np
)
{
return
0
;
}
static
inline
struct
device_node
*
of_graph_get_port_by_id
(
struct
device_node
*
node
,
u32
id
)
{
...
...
@@ -80,6 +89,18 @@ static inline struct device_node *of_graph_get_endpoint_by_regs(
return
NULL
;
}
static
inline
struct
device_node
*
of_graph_get_remote_endpoint
(
const
struct
device_node
*
node
)
{
return
NULL
;
}
static
inline
struct
device_node
*
of_graph_get_port_parent
(
struct
device_node
*
node
)
{
return
NULL
;
}
static
inline
struct
device_node
*
of_graph_get_remote_port_parent
(
const
struct
device_node
*
node
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录