Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
db421e64
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,发现更多精彩内容 >>
提交
db421e64
编写于
9月 25, 2005
作者:
W
Wolfgang Denk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix drivers/cfi_flash.c: use info->reset_cmd instead of FLASH_CMD_RESET
Patch by Zachary Landau, 11 Feb 2005
上级
c177bb5f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
5 deletion
+8
-5
CHANGELOG
CHANGELOG
+3
-0
drivers/cfi_flash.c
drivers/cfi_flash.c
+5
-5
未找到文件。
CHANGELOG
浏览文件 @
db421e64
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
Changes for U-Boot 1.1.4:
Changes for U-Boot 1.1.4:
======================================================================
======================================================================
* Fix drivers/cfi_flash.c: use info->reset_cmd instead of FLASH_CMD_RESET
Patch by Zachary Landau, 11 Feb 2005
* Fix VOH405 Support
* Fix VOH405 Support
Patch by Matthias Fuchs, 25 Sep 2005
Patch by Matthias Fuchs, 25 Sep 2005
...
...
drivers/cfi_flash.c
浏览文件 @
db421e64
...
@@ -638,7 +638,7 @@ void flash_read_user_serial (flash_info_t * info, void *buffer, int offset,
...
@@ -638,7 +638,7 @@ void flash_read_user_serial (flash_info_t * info, void *buffer, int offset,
src
=
flash_make_addr
(
info
,
0
,
FLASH_OFFSET_USER_PROTECTION
);
src
=
flash_make_addr
(
info
,
0
,
FLASH_OFFSET_USER_PROTECTION
);
flash_write_cmd
(
info
,
0
,
0
,
FLASH_CMD_READ_ID
);
flash_write_cmd
(
info
,
0
,
0
,
FLASH_CMD_READ_ID
);
memcpy
(
dst
,
src
+
offset
,
len
);
memcpy
(
dst
,
src
+
offset
,
len
);
flash_write_cmd
(
info
,
0
,
0
,
FLASH_CMD_RESET
);
flash_write_cmd
(
info
,
0
,
0
,
info
->
cmd_reset
);
}
}
/*
/*
...
@@ -652,7 +652,7 @@ void flash_read_factory_serial (flash_info_t * info, void *buffer, int offset,
...
@@ -652,7 +652,7 @@ void flash_read_factory_serial (flash_info_t * info, void *buffer, int offset,
src
=
flash_make_addr
(
info
,
0
,
FLASH_OFFSET_INTEL_PROTECTION
);
src
=
flash_make_addr
(
info
,
0
,
FLASH_OFFSET_INTEL_PROTECTION
);
flash_write_cmd
(
info
,
0
,
0
,
FLASH_CMD_READ_ID
);
flash_write_cmd
(
info
,
0
,
0
,
FLASH_CMD_READ_ID
);
memcpy
(
buffer
,
src
+
offset
,
len
);
memcpy
(
buffer
,
src
+
offset
,
len
);
flash_write_cmd
(
info
,
0
,
0
,
FLASH_CMD_RESET
);
flash_write_cmd
(
info
,
0
,
0
,
info
->
cmd_reset
);
}
}
#endif
/* CFG_FLASH_PROTECTION */
#endif
/* CFG_FLASH_PROTECTION */
...
@@ -737,7 +737,7 @@ static int flash_full_status_check (flash_info_t * info, flash_sect_t sector,
...
@@ -737,7 +737,7 @@ static int flash_full_status_check (flash_info_t * info, flash_sect_t sector,
if
(
flash_isset
(
info
,
sector
,
0
,
FLASH_STATUS_VPENS
))
if
(
flash_isset
(
info
,
sector
,
0
,
FLASH_STATUS_VPENS
))
puts
(
"Vpp Low Error.
\n
"
);
puts
(
"Vpp Low Error.
\n
"
);
}
}
flash_write_cmd
(
info
,
sector
,
0
,
FLASH_CMD_RESET
);
flash_write_cmd
(
info
,
sector
,
0
,
info
->
cmd_reset
);
break
;
break
;
default:
default:
break
;
break
;
...
@@ -978,7 +978,7 @@ static int flash_detect_cfi (flash_info_t * info)
...
@@ -978,7 +978,7 @@ static int flash_detect_cfi (flash_info_t * info)
for
(
info
->
chipwidth
=
FLASH_CFI_BY8
;
for
(
info
->
chipwidth
=
FLASH_CFI_BY8
;
info
->
chipwidth
<=
info
->
portwidth
;
info
->
chipwidth
<=
info
->
portwidth
;
info
->
chipwidth
<<=
1
)
{
info
->
chipwidth
<<=
1
)
{
flash_write_cmd
(
info
,
0
,
0
,
FLASH_CMD_RESET
);
flash_write_cmd
(
info
,
0
,
0
,
info
->
cmd_reset
);
flash_write_cmd
(
info
,
0
,
FLASH_OFFSET_CFI
,
FLASH_CMD_CFI
);
flash_write_cmd
(
info
,
0
,
FLASH_OFFSET_CFI
,
FLASH_CMD_CFI
);
if
(
flash_isequal
(
info
,
0
,
FLASH_OFFSET_CFI_RESP
,
'Q'
)
if
(
flash_isequal
(
info
,
0
,
FLASH_OFFSET_CFI_RESP
,
'Q'
)
&&
flash_isequal
(
info
,
0
,
FLASH_OFFSET_CFI_RESP
+
1
,
'R'
)
&&
flash_isequal
(
info
,
0
,
FLASH_OFFSET_CFI_RESP
+
1
,
'R'
)
...
@@ -1102,7 +1102,7 @@ static ulong flash_get_size (ulong base, int banknum)
...
@@ -1102,7 +1102,7 @@ static ulong flash_get_size (ulong base, int banknum)
}
}
}
}
flash_write_cmd
(
info
,
0
,
0
,
FLASH_CMD_RESET
);
flash_write_cmd
(
info
,
0
,
0
,
info
->
cmd_reset
);
return
(
info
->
size
);
return
(
info
->
size
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录