Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
e8ee8f3a
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,发现更多精彩内容 >>
提交
e8ee8f3a
编写于
10月 25, 2007
作者:
T
TsiChungLiew
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ColdFire 54455: Fix correct boot location for atmel and intel
Signed-off-by:
N
TsiChungLiew
<
Tsi-Chung.Liew@freescale.com
>
上级
688e8eb4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
27 addition
and
17 deletion
+27
-17
Makefile
Makefile
+4
-0
board/freescale/m54455evb/config.mk
board/freescale/m54455evb/config.mk
+3
-1
include/configs/M54455EVB.h
include/configs/M54455EVB.h
+20
-16
未找到文件。
Makefile
浏览文件 @
e8ee8f3a
...
...
@@ -1733,9 +1733,13 @@ M54455EVB_i66_config : unconfig
>
include/config.h
;
\
if
[
"
$
${FLASH}
"
==
"INTEL"
]
;
then
\
echo
"#undef CFG_ATMEL_BOOT"
>>
$(obj)
include/config.h
;
\
echo
"TEXT_BASE = 0x00000000"
>
$(obj)
board/freescale/m54455evb/config.tmp
;
\
cp
$(obj)
board/freescale/m54455evb/u-boot.int
$(obj)
board/freescale/m54455evb/u-boot.lds
;
\
echo
"... with INTEL boot..."
;
\
else
\
echo
"#define CFG_ATMEL_BOOT"
>>
$(obj)
include/config.h
;
\
echo
"TEXT_BASE = 0x04000000"
>
$(obj)
board/freescale/m54455evb/config.tmp
;
\
cp
$(obj)
board/freescale/m54455evb/u-boot.atm
$(obj)
board/freescale/m54455evb/u-boot.lds
;
\
echo
"... with ATMEL boot..."
;
\
fi
;
\
echo
"#define CFG_INPUT_CLKSRC
$
${FREQ}
"
>>
$(obj)
include/config.h
;
\
...
...
board/freescale/m54455evb/config.mk
浏览文件 @
e8ee8f3a
...
...
@@ -22,4 +22,6 @@
# MA 02111-1307 USA
#
TEXT_BASE
=
0
sinclude
$(OBJTREE)/board/$(BOARDDIR)/config.tmp
PLATFORM_CPPFLAGS
+=
-DTEXT_BASE
=
$(TEXT_BASE)
include/configs/M54455EVB.h
浏览文件 @
e8ee8f3a
...
...
@@ -27,8 +27,8 @@
* board/config.h - configuration options, board specific
*/
#ifndef _
JAMICA54455
_H
#define _
JAMICA54455
_H
#ifndef _
M54455EVB
_H
#define _
M54455EVB
_H
/*
* High Level Configuration Options
...
...
@@ -75,7 +75,7 @@
#define CONFIG_CMD_MISC
#define CONFIG_CMD_MII
#define CONFIG_CMD_NET
#
define
CONFIG_CMD_PCI
#
undef
CONFIG_CMD_PCI
#define CONFIG_CMD_PING
#define CONFIG_CMD_REGINFO
...
...
@@ -129,8 +129,8 @@
"u-boot=u-boot.bin\0" \
"load=tftp ${loadaddr) ${u-boot}\0" \
"upd=run load; run prog\0" \
"prog=prot off
0
2ffff;" \
"era
0
2ffff;" \
"prog=prot off
4000000 40
2ffff;" \
"era
4000000 40
2ffff;" \
"cp.b ${loadaddr} 0 ${filesize};" \
"save\0" \
""
...
...
@@ -174,6 +174,7 @@
#define CFG_IMMR CFG_MBAR
/* PCI */
#ifdef CONFIG_CMD_PCI
#define CONFIG_PCI 1
#define CFG_PCI_MEM_BUS 0xA0000000
...
...
@@ -187,6 +188,7 @@
#define CFG_PCI_CFG_BUS 0xB0000000
#define CFG_PCI_CFG_PHYS CFG_PCI_CFG_BUS
#define CFG_PCI_CFG_SIZE 0x01000000
#endif
/* FPGA - Spartan 2 */
/* experiment
...
...
@@ -268,8 +270,6 @@
/* Configuration for environment
* Environment is embedded in u-boot in the second sector of the flash
*/
#define CFG_ENV_OFFSET 0x4000
#define CFG_ENV_SECT_SIZE 0x2000
#define CFG_ENV_IS_IN_FLASH 1
#define CONFIG_ENV_OVERWRITE 1
#undef CFG_ENV_IS_EMBEDDED
...
...
@@ -278,13 +278,17 @@
* FLASH organization
*/
#ifdef CFG_ATMEL_BOOT
# define CFG_FLASH_BASE
0
# define CFG_FLASH_BASE
CFG_CS0_BASE
# define CFG_FLASH0_BASE CFG_CS0_BASE
# define CFG_FLASH1_BASE CFG_CS1_BASE
# define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x4000)
# define CFG_ENV_SECT_SIZE 0x2000
#else
# define CFG_FLASH_BASE CFG_FLASH0_BASE
# define CFG_FLASH0_BASE CFG_CS1_BASE
# define CFG_FLASH1_BASE CFG_CS0_BASE
# define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x60000)
# define CFG_ENV_SECT_SIZE 0x20000
#endif
/* M54455EVB has one non CFI flash, defined CFG_FLASH_CFI will cause the system
...
...
@@ -328,9 +332,9 @@
* NOTE: Enable CONFIG_CMD_JFFS2 for JFFS2 support.
*/
#ifdef CFG_ATMEL_BOOT
# define CONFIG_JFFS2_DEV "nor
0
"
# define CONFIG_JFFS2_DEV "nor
1
"
# define CONFIG_JFFS2_PART_SIZE 0x01000000
# define CONFIG_JFFS2_PART_OFFSET
CFG_FLASH1_BASE
# define CONFIG_JFFS2_PART_OFFSET
(CFG_FLASH1_BASE + 0x500000)
#else
# define CONFIG_JFFS2_DEV "nor0"
# define CONFIG_JFFS2_PART_SIZE (0x01000000 - 0x500000)
...
...
@@ -356,20 +360,20 @@
#ifdef CFG_ATMEL_BOOT
/* Atmel Flash */
#define CFG_CS0_BASE 0
#define CFG_CS0_BASE 0
x04000000
#define CFG_CS0_MASK 0x00070001
#define CFG_CS0_CTRL 0x00001140
/* Intel Flash */
#define CFG_CS1_BASE 0x0
4
000000
#define CFG_CS1_BASE 0x0
0
000000
#define CFG_CS1_MASK 0x01FF0001
#define CFG_CS1_CTRL 0x00
3F3
D60
#define CFG_CS1_CTRL 0x00
000
D60
#define CFG_ATMEL_BASE CFG_CS0_BASE
#else
/* Intel Flash */
#define CFG_CS0_BASE 0
#define CFG_CS0_BASE 0
x00000000
#define CFG_CS0_MASK 0x01FF0001
#define CFG_CS0_CTRL 0x00
3F3
D60
#define CFG_CS0_CTRL 0x00
000
D60
/* Atmel Flash */
#define CFG_CS1_BASE 0x04000000
#define CFG_CS1_MASK 0x00070001
...
...
@@ -388,4 +392,4 @@
#define CFG_CS3_MASK 0x00070001
#define CFG_CS3_CTRL 0x00000020
#endif
/* _
JAMICA54455
_H */
#endif
/* _
M54455EVB
_H */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录