Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
acf52fb2
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,发现更多精彩内容 >>
提交
acf52fb2
编写于
11月 06, 2018
作者:
T
Tom Rini
浏览文件
操作
浏览文件
下载
差异文件
Merge
git://git.denx.de/u-boot-marvell
上级
8f78e700
ae4c38a5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
8 deletion
+12
-8
arch/arm/dts/armada-xp-theadorable.dts
arch/arm/dts/armada-xp-theadorable.dts
+3
-3
arch/arm/mach-mvebu/dram.c
arch/arm/mach-mvebu/dram.c
+6
-4
arch/arm/mach-mvebu/include/mach/cpu.h
arch/arm/mach-mvebu/include/mach/cpu.h
+3
-1
未找到文件。
arch/arm/dts/armada-xp-theadorable.dts
浏览文件 @
acf52fb2
...
...
@@ -134,7 +134,7 @@
u
-
boot
,
dm
-
pre
-
reloc
;
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
1
>;
compatible
=
"n25q128a13"
,
"jedec,spi-nor"
;
compatible
=
"n25q128a13"
,
"jedec,spi-nor"
,
"spi-flash"
;
reg
=
<
0
>;
/*
Chip
select
0
*/
spi
-
max
-
frequency
=
<
27777777
>;
};
...
...
@@ -151,11 +151,11 @@
spi1
:
spi
@
10680
{
status
=
"okay"
;
fpga
@
2
{
fpga
@
0
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
1
>;
compatible
=
"spi-generic-device"
;
reg
=
<
2
>;
/*
Chip
select
2
*/
reg
=
<
0
>;
/*
Chip
select
0
*/
spi
-
max
-
frequency
=
<
27777777
>;
};
};
...
...
arch/arm/mach-mvebu/dram.c
浏览文件 @
acf52fb2
...
...
@@ -33,7 +33,9 @@ struct sdram_addr_dec {
#define REG_CPUCS_WIN_WIN0_CS(x) (((x) & 0x3) << 2)
#define REG_CPUCS_WIN_SIZE(x) (((x) & 0xff) << 24)
#define SDRAM_SIZE_MAX 0xc0000000
#ifndef MVEBU_SDRAM_SIZE_MAX
#define MVEBU_SDRAM_SIZE_MAX 0xc0000000
#endif
#define SCRUB_MAGIC 0xbeefdead
...
...
@@ -275,8 +277,8 @@ int dram_init(void)
* address space left for the internal registers etc.
*/
size
+=
mvebu_sdram_bs
(
i
);
if
(
size
>
SDRAM_SIZE_MAX
)
size
=
SDRAM_SIZE_MAX
;
if
(
size
>
MVEBU_
SDRAM_SIZE_MAX
)
size
=
MVEBU_
SDRAM_SIZE_MAX
;
}
for
(;
i
<
CONFIG_NR_DRAM_BANKS
;
i
++
)
{
...
...
@@ -312,7 +314,7 @@ int dram_init_banksize(void)
/* Clip the banksize to 1GiB if it exceeds the max size */
size
+=
gd
->
bd
->
bi_dram
[
i
].
size
;
if
(
size
>
SDRAM_SIZE_MAX
)
if
(
size
>
MVEBU_
SDRAM_SIZE_MAX
)
mvebu_sdram_bs_set
(
i
,
0x40000000
);
}
...
...
arch/arm/mach-mvebu/include/mach/cpu.h
浏览文件 @
acf52fb2
...
...
@@ -68,10 +68,12 @@ enum {
MVEBU_SOC_UNKNOWN
,
};
#define MVEBU_SDRAM_SIZE_MAX 0xc0000000
/*
* Default Device Address MAP BAR values
*/
#define MBUS_PCI_MEM_BASE
0xE8000000
#define MBUS_PCI_MEM_BASE
MVEBU_SDRAM_SIZE_MAX
#define MBUS_PCI_MEM_SIZE (128 << 20)
#define MBUS_PCI_IO_BASE 0xF1100000
#define MBUS_PCI_IO_SIZE (64 << 10)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录