Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
a49d10cf
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,发现更多精彩内容 >>
提交
a49d10cf
编写于
8月 25, 2008
作者:
W
Wolfgang Denk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor coding style cleanup, updte CHANGELOG
Signed-off-by:
N
Wolfgang Denk
<
wd@denx.de
>
上级
b97a3116
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
927 addition
and
14 deletion
+927
-14
CHANGELOG
CHANGELOG
+915
-0
common/cmd_yaffs2.c
common/cmd_yaffs2.c
+0
-2
cpu/mpc5xxx/cpu.c
cpu/mpc5xxx/cpu.c
+7
-7
drivers/mtd/onenand/onenand_bbt.c
drivers/mtd/onenand/onenand_bbt.c
+5
-5
未找到文件。
CHANGELOG
浏览文件 @
a49d10cf
此差异已折叠。
点击以展开。
common/cmd_yaffs2.c
浏览文件 @
a49d10cf
...
...
@@ -140,8 +140,6 @@ int do_ydump (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return
0
;
}
U_BOOT_CMD
(
ymount
,
3
,
0
,
do_ymount
,
"ymount
\t
- mount yaffs
\n
"
,
...
...
cpu/mpc5xxx/cpu.c
浏览文件 @
a49d10cf
...
...
@@ -140,18 +140,18 @@ void ft_cpu_setup(void *blob, bd_t *bd)
void
bootcount_store
(
ulong
a
)
{
volatile
ulong
*
save_addr
=
(
volatile
ulong
*
)
(
MPC5XXX_CDM_BRDCRMB
);
volatile
ulong
*
save_addr
=
(
volatile
ulong
*
)
(
MPC5XXX_CDM_BRDCRMB
);
*
save_addr
=
(
BOOTCOUNT_MAGIC
&
0xffff0000
)
|
a
;
*
save_addr
=
(
BOOTCOUNT_MAGIC
&
0xffff0000
)
|
a
;
}
ulong
bootcount_load
(
void
)
{
volatile
ulong
*
save_addr
=
(
volatile
ulong
*
)
(
MPC5XXX_CDM_BRDCRMB
);
volatile
ulong
*
save_addr
=
(
volatile
ulong
*
)
(
MPC5XXX_CDM_BRDCRMB
);
if
((
*
save_addr
&
0xffff0000
)
!=
(
BOOTCOUNT_MAGIC
&
0xffff0000
))
return
0
;
else
return
(
*
save_addr
&
0x0000ffff
);
if
((
*
save_addr
&
0xffff0000
)
!=
(
BOOTCOUNT_MAGIC
&
0xffff0000
))
return
0
;
else
return
(
*
save_addr
&
0x0000ffff
);
}
#endif
/* CONFIG_BOOTCOUNT_LIMIT */
drivers/mtd/onenand/onenand_bbt.c
浏览文件 @
a49d10cf
...
...
@@ -54,7 +54,7 @@ static int check_short_pattern(uint8_t * buf, int len, int paglen,
* @param buf temporary buffer
* @param bd descriptor for the good/bad block search pattern
* @param chip create the table for a specific chip, -1 read all chips.
*
Applies only if NAND_BBT_PERCHIP option is set
*
Applies only if NAND_BBT_PERCHIP option is set
*
* Create a bad block table by scanning the device
* for the given good/bad block identify pattern
...
...
@@ -102,8 +102,8 @@ static int create_bbt(struct mtd_info *mtd, uint8_t * buf,
bd
->
offs
,
&
ops
);
/* If it is a initial bad block, just ignore it */
if
(
ret
==
ONENAND_BBT_READ_FATAL_ERROR
)
return
-
EIO
;
if
(
ret
==
ONENAND_BBT_READ_FATAL_ERROR
)
return
-
EIO
;
if
(
ret
||
check_short_pattern
(
&
buf
[
j
*
scanlen
],
scanlen
,
mtd
->
writesize
,
bd
))
{
...
...
@@ -156,8 +156,8 @@ static int onenand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt)
res
=
(
bbm
->
bbt
[
block
>>
3
]
>>
(
block
&
0x06
))
&
0x03
;
MTDDEBUG
(
MTD_DEBUG_LEVEL2
,
"onenand_isbad_bbt: bbt info for offs 0x%08x: (block %d) 0x%02x
\n
"
,
(
unsigned
int
)
offs
,
block
>>
1
,
res
);
"onenand_isbad_bbt: bbt info for offs 0x%08x: (block %d) 0x%02x
\n
"
,
(
unsigned
int
)
offs
,
block
>>
1
,
res
);
switch
((
int
)
res
)
{
case
0x00
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录