Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
996ec1dc
U
U-Boot.Mirror
项目概览
OS
/
U-Boot.Mirror
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
U-Boot.Mirror
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
996ec1dc
编写于
10月 03, 2015
作者:
T
Tom Rini
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.denx.de/u-boot-fdt
上级
97fec710
cce573e8
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
26 addition
and
17 deletion
+26
-17
arch/arm/dts/exynos4210-trats.dts
arch/arm/dts/exynos4210-trats.dts
+4
-0
arch/arm/mach-exynos/clock.c
arch/arm/mach-exynos/clock.c
+4
-6
drivers/gpio/s5p_gpio.c
drivers/gpio/s5p_gpio.c
+11
-7
dts/Kconfig
dts/Kconfig
+3
-1
lib/fdtdec.c
lib/fdtdec.c
+4
-3
未找到文件。
arch/arm/dts/exynos4210-trats.dts
浏览文件 @
996ec1dc
...
...
@@ -117,4 +117,8 @@
sdhci@12540000 {
status = "disabled";
};
dwmmc@12550000 {
status = "disabled";
};
};
arch/arm/mach-exynos/clock.c
浏览文件 @
996ec1dc
...
...
@@ -1661,6 +1661,9 @@ unsigned long get_mmc_clk(int dev_index)
{
enum
periph_id
id
;
if
(
cpu_is_exynos4
())
return
exynos4_get_mmc_clk
(
dev_index
);
switch
(
dev_index
)
{
case
0
:
id
=
PERIPH_ID_SDMMC0
;
...
...
@@ -1679,12 +1682,7 @@ unsigned long get_mmc_clk(int dev_index)
return
-
1
;
}
if
(
cpu_is_exynos5
())
return
clock_get_periph_rate
(
id
);
else
if
(
cpu_is_exynos4
())
return
exynos4_get_mmc_clk
(
dev_index
);
return
0
;
return
clock_get_periph_rate
(
id
);
}
void
set_mmc_clk
(
int
dev_index
,
unsigned
int
div
)
...
...
drivers/gpio/s5p_gpio.c
浏览文件 @
996ec1dc
...
...
@@ -341,18 +341,22 @@ static int gpio_exynos_bind(struct udevice *parent)
plat
=
calloc
(
1
,
sizeof
(
*
plat
));
if
(
!
plat
)
return
-
ENOMEM
;
reg
=
fdtdec_get_addr
(
blob
,
node
,
"reg"
);
if
(
reg
!=
FDT_ADDR_T_NONE
)
bank
=
(
struct
s5p_gpio_bank
*
)((
ulong
)
base
+
reg
);
plat
->
bank
=
bank
;
plat
->
bank_name
=
fdt_get_name
(
blob
,
node
,
NULL
);
debug
(
"dev at %p: %s
\n
"
,
bank
,
plat
->
bank_name
);
plat
->
bank_name
=
fdt_get_name
(
blob
,
node
,
NULL
);
ret
=
device_bind
(
parent
,
parent
->
driver
,
plat
->
bank_name
,
plat
,
-
1
,
&
dev
);
plat
->
bank_name
,
plat
,
-
1
,
&
dev
);
if
(
ret
)
return
ret
;
dev
->
of_offset
=
node
;
reg
=
dev_get_addr
(
dev
);
if
(
reg
!=
FDT_ADDR_T_NONE
)
bank
=
(
struct
s5p_gpio_bank
*
)((
ulong
)
base
+
reg
);
plat
->
bank
=
bank
;
debug
(
"dev at %p: %s
\n
"
,
bank
,
plat
->
bank_name
);
}
return
0
;
...
...
dts/Kconfig
浏览文件 @
996ec1dc
...
...
@@ -37,7 +37,9 @@ config OF_EMBED
bool "Embedded DTB for DT control"
help
If this option is enabled, the device tree will be picked up and
built into the U-Boot image.
built into the U-Boot image. This is suitable for local debugging
and development only and is not recommended for production devices.
Boards in the mainline U-Boot tree should not use it.
config OF_HOSTFILE
bool "Host filed DTB for DT control"
...
...
lib/fdtdec.c
浏览文件 @
996ec1dc
...
...
@@ -149,7 +149,7 @@ fdt_addr_t fdtdec_get_addr_size_auto_parent(const void *blob, int parent,
}
ns
=
fdt_size_cells
(
blob
,
parent
);
if
(
ns
<
1
)
{
if
(
ns
<
0
)
{
debug
(
"(bad #size-cells)
\n
"
);
return
FDT_ADDR_T_NONE
;
}
...
...
@@ -180,10 +180,11 @@ fdt_addr_t fdtdec_get_addr_size_auto_noparent(const void *blob, int node,
fdt_addr_t
fdtdec_get_addr_size
(
const
void
*
blob
,
int
node
,
const
char
*
prop_name
,
fdt_size_t
*
sizep
)
{
int
ns
=
sizep
?
(
sizeof
(
fdt_size_t
)
/
sizeof
(
fdt32_t
))
:
0
;
return
fdtdec_get_addr_size_fixed
(
blob
,
node
,
prop_name
,
0
,
sizeof
(
fdt_addr_t
)
/
sizeof
(
fdt32_t
),
sizeof
(
fdt_size_t
)
/
sizeof
(
fdt32_t
),
sizep
);
ns
,
sizep
);
}
fdt_addr_t
fdtdec_get_addr
(
const
void
*
blob
,
int
node
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录