Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
c75eba3b
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,发现更多精彩内容 >>
提交
c75eba3b
编写于
12月 01, 2005
作者:
W
Wolfgang Denk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix U-Boot compilation for MIPS boards using ELDK 4.0
上级
4a86d779
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
29 addition
and
26 deletion
+29
-26
CHANGELOG
CHANGELOG
+2
-0
common/cmd_ide.c
common/cmd_ide.c
+1
-1
cpu/mips/config.mk
cpu/mips/config.mk
+1
-1
cpu/mips/start.S
cpu/mips/start.S
+18
-13
lib_mips/board.c
lib_mips/board.c
+7
-11
未找到文件。
CHANGELOG
浏览文件 @
c75eba3b
...
...
@@ -2,6 +2,8 @@
Changes for U-Boot 1.1.4:
======================================================================
* Fix U-Boot compilation for MIPS boards using ELDK 4.0
* Add support for TQM8541/8555 boards, TQM85xx support reworked:
- Support for TQM8541/8555 boards added.
- Complete rework of TQM8540/8560 support.
...
...
common/cmd_ide.c
浏览文件 @
c75eba3b
...
...
@@ -49,7 +49,7 @@
#include <asm/io.h>
#ifdef __MIPS__
/* Macros depend on this variable */
static
unsigned
long
mips_io_port_base
=
0
;
unsigned
long
mips_io_port_base
=
0
;
#endif
#endif
...
...
cpu/mips/config.mk
浏览文件 @
c75eba3b
...
...
@@ -26,7 +26,7 @@ MIPSFLAGS=$(shell \
if
[
"
$v
"
-lt
"14"
]
;
then
\
echo
"-mcpu=4kc"
;
\
else
\
echo
"-march=4kc -mtune=4kc
-Wa,-mips_allow_branch_to_undefined
"
;
\
echo
"-march=4kc -mtune=4kc"
;
\
fi
)
ifneq
(,$(findstring 4KCle,$(CROSS_COMPILE)))
...
...
cpu/mips/start.S
浏览文件 @
c75eba3b
...
...
@@ -234,21 +234,34 @@ reset:
li
t0
,
CONF_CM_UNCACHED
mtc0
t0
,
CP0_CONFIG
/
*
Initialize
GOT
pointer
.
*/
bal
1
f
nop
.
word
_GLOBAL_OFFSET_TABLE_
1:
move
gp
,
ra
lw
t1
,
0
(
ra
)
move
gp
,
t1
#ifdef CONFIG_INCA_IP
/
*
Disable
INCA
-
IP
Watchdog
.
*/
bal
disable_incaip_wdt
la
t9
,
disable_incaip_wdt
jalr
t9
nop
#endif
/
*
Initialize
any
external
memory
.
*/
bal
lowlevel_init
la
t9
,
lowlevel_init
jalr
t9
nop
/
*
Initialize
caches
...
*/
bal
mips_cache_reset
la
t9
,
mips_cache_reset
jalr
t9
nop
/
*
...
and
enable
them
.
...
...
@@ -260,21 +273,13 @@ reset:
/
*
Set
up
temporary
stack
.
*/
li
a0
,
CFG_INIT_SP_OFFSET
bal
mips_cache_lock
la
t9
,
mips_cache_lock
jalr
t9
nop
li
t0
,
CFG_SDRAM_BASE
+
CFG_INIT_SP_OFFSET
la
sp
,
0
(
t0
)
/
*
Initialize
GOT
pointer
.
*/
bal
1
f
nop
.
word
_GLOBAL_OFFSET_TABLE_
-
1
f
+
4
1
:
move
gp
,
ra
lw
t1
,
0
(
ra
)
add
gp
,
t1
la
t9
,
board_init_f
j
t9
nop
...
...
lib_mips/board.c
浏览文件 @
c75eba3b
...
...
@@ -29,6 +29,8 @@
#include <net.h>
#include <environment.h>
DECLARE_GLOBAL_DATA_PTR
;
#if ( ((CFG_ENV_ADDR+CFG_ENV_SIZE) < CFG_MONITOR_BASE) || \
(CFG_ENV_ADDR >= (CFG_MONITOR_BASE + CFG_MONITOR_LEN)) ) || \
defined(CFG_ENV_IS_IN_NVRAM)
...
...
@@ -66,8 +68,6 @@ static ulong mem_malloc_brk;
*/
static
void
mem_malloc_init
(
void
)
{
DECLARE_GLOBAL_DATA_PTR
;
ulong
dest_addr
=
CFG_MONITOR_BASE
+
gd
->
reloc_off
;
mem_malloc_end
=
dest_addr
;
...
...
@@ -94,8 +94,6 @@ void *sbrk (ptrdiff_t increment)
static
int
init_func_ram
(
void
)
{
DECLARE_GLOBAL_DATA_PTR
;
#ifdef CONFIG_BOARD_TYPES
int
board_type
=
gd
->
board_type
;
#else
...
...
@@ -127,8 +125,6 @@ static void display_flash_config(ulong size)
static
int
init_baudrate
(
void
)
{
DECLARE_GLOBAL_DATA_PTR
;
uchar
tmp
[
64
];
/* long enough for environment variables */
int
i
=
getenv_r
(
"baudrate"
,
tmp
,
sizeof
(
tmp
));
...
...
@@ -180,12 +176,11 @@ init_fnc_t *init_sequence[] = {
void
board_init_f
(
ulong
bootflag
)
{
DECLARE_GLOBAL_DATA_PTR
;
gd_t
gd_data
,
*
id
;
bd_t
*
bd
;
init_fnc_t
**
init_fnc_ptr
;
ulong
addr
,
addr_sp
,
len
=
(
ulong
)
&
uboot_end
-
CFG_MONITOR_BASE
;
ulong
*
s
;
#ifdef CONFIG_PURPLE
void
copy_code
(
ulong
);
#endif
...
...
@@ -262,8 +257,10 @@ void board_init_f(ulong bootflag)
*/
addr_sp
-=
16
;
addr_sp
&=
~
0xF
;
*
((
ulong
*
)
addr_sp
)
--
=
0
;
*
((
ulong
*
)
addr_sp
)
--
=
0
;
s
=
(
ulong
*
)
addr_sp
;
*
s
--
=
0
;
*
s
--
=
0
;
addr_sp
=
(
ulong
)
s
;
debug
(
"Stack Pointer at: %08lx
\n
"
,
addr_sp
);
/*
...
...
@@ -298,7 +295,6 @@ void board_init_f(ulong bootflag)
void
board_init_r
(
gd_t
*
id
,
ulong
dest_addr
)
{
DECLARE_GLOBAL_DATA_PTR
;
cmd_tbl_t
*
cmdtp
;
ulong
size
;
extern
void
malloc_bin_reloc
(
void
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录