Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
9d909604
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,发现更多精彩内容 >>
提交
9d909604
编写于
6月 01, 2007
作者:
S
Stefan Roese
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ppc4xx: Update Sequoia NAND booting support with ECC
Signed-off-by:
N
Stefan Roese
<
sr@denx.de
>
上级
cf959c7d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
8 deletion
+20
-8
board/amcc/sequoia/sdram.c
board/amcc/sequoia/sdram.c
+4
-0
include/configs/sequoia.h
include/configs/sequoia.h
+10
-3
nand_spl/board/amcc/sequoia/Makefile
nand_spl/board/amcc/sequoia/Makefile
+6
-5
未找到文件。
board/amcc/sequoia/sdram.c
浏览文件 @
9d909604
...
...
@@ -379,7 +379,11 @@ void denali_core_search_data_eye(unsigned long memory_size)
long
int
initdram
(
int
board_type
)
{
#if !defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL)
#if !defined(CONFIG_NAND_SPL)
ulong
speed
=
get_bus_freq
(
0
);
#else
ulong
speed
=
133333333
;
/* 133MHz is on the safe side */
#endif
mtsdram
(
DDR0_02
,
0x00000000
);
...
...
include/configs/sequoia.h
浏览文件 @
9d909604
...
...
@@ -166,12 +166,19 @@
/*
* Now the NAND chip has to be defined (no autodetection used!)
*/
#define CFG_NAND_PAGE_SIZE
(512)
/* NAND chip page size */
#define CFG_NAND_PAGE_SIZE
512
/* NAND chip page size */
#define CFG_NAND_BLOCK_SIZE (16 << 10)
/* NAND chip block size */
#define CFG_NAND_PAGE_COUNT
(32)
/* NAND chip page count */
#define CFG_NAND_BAD_BLOCK_POS
(5)
/* Location of bad block marker */
#define CFG_NAND_PAGE_COUNT
32
/* NAND chip page count */
#define CFG_NAND_BAD_BLOCK_POS
5
/* Location of bad block marker */
#undef CFG_NAND_4_ADDR_CYCLE
/* No fourth addr used (<=32MB) */
#define CFG_NAND_ECCSIZE 256
#define CFG_NAND_ECCBYTES 3
#define CFG_NAND_ECCSTEPS (CFG_NAND_PAGE_SIZE / CFG_NAND_ECCSIZE)
#define CFG_NAND_OOBSIZE 16
#define CFG_NAND_ECCTOTAL (CFG_NAND_ECCBYTES * CFG_NAND_ECCSTEPS)
#define CFG_NAND_ECCPOS {0, 1, 2, 3, 6, 7}
#ifdef CFG_ENV_IS_IN_NAND
/*
* For NAND booting the environment is embedded in the U-Boot image. Please take
...
...
nand_spl/board/amcc/sequoia/Makefile
浏览文件 @
9d909604
...
...
@@ -30,7 +30,7 @@ AFLAGS += -DCONFIG_NAND_SPL
CFLAGS
+=
-DCONFIG_NAND_SPL
SOBJS
=
start.o init.o resetvec.o
COBJS
=
nand_boot.o n
dfc.o sdram.o speed
.o
COBJS
=
nand_boot.o n
and_ecc.o ndfc.o sdram
.o
SRCS
:=
$(
addprefix
$(obj)
,
$(SOBJS:.o=.S)
$(COBJS:.o=.c)
)
OBJS
:=
$(
addprefix
$(obj)
,
$(SOBJS)
$(COBJS)
)
...
...
@@ -69,10 +69,6 @@ $(obj)start.S:
@
rm
-f
$(obj)
start.S
ln
-s
$(SRCTREE)
/cpu/ppc4xx/start.S
$(obj)
start.S
$(obj)speed.c
:
@
rm
-f
$(obj)
speed.c
ln
-s
$(SRCTREE)
/cpu/ppc4xx/speed.c
$(obj)
speed.c
# from board directory
$(obj)init.S
:
@
rm
-f
$(obj)
init.S
...
...
@@ -89,6 +85,11 @@ $(obj)nand_boot.c:
@
rm
-f
$(obj)
nand_boot.c
ln
-s
$(SRCTREE)
/nand_spl/nand_boot.c
$(obj)
nand_boot.c
# from drivers/nand directory
$(obj)nand_ecc.c
:
@
rm
-f
$(obj)
nand_ecc.c
ln
-s
$(SRCTREE)
/drivers/nand/nand_ecc.c
$(obj)
nand_ecc.c
#########################################################################
$(obj)%.o
:
$(obj)%.S
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录