Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
e34a0438
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,发现更多精彩内容 >>
提交
e34a0438
编写于
11月 02, 2007
作者:
B
Ben Warren
浏览文件
操作
浏览文件
下载
差异文件
Merge
git://www.denx.de/git/u-boot
上级
31548249
e60adeac
变更
35
隐藏空白更改
内联
并排
Showing
35 changed file
with
173 addition
and
112 deletion
+173
-112
Makefile
Makefile
+4
-0
board/cds/common/ft_board.c
board/cds/common/ft_board.c
+15
-8
board/dbau1x00/u-boot.lds
board/dbau1x00/u-boot.lds
+7
-7
board/freescale/m54455evb/config.mk
board/freescale/m54455evb/config.mk
+3
-1
board/gth2/u-boot.lds
board/gth2/u-boot.lds
+7
-7
board/incaip/u-boot.lds
board/incaip/u-boot.lds
+7
-7
board/m5282evb/m5282evb.c
board/m5282evb/m5282evb.c
+1
-0
board/pb1x00/u-boot.lds
board/pb1x00/u-boot.lds
+7
-7
board/purple/u-boot.lds
board/purple/u-boot.lds
+7
-7
board/tb0229/u-boot.lds
board/tb0229/u-boot.lds
+7
-7
cpu/mcf52x2/start.S
cpu/mcf52x2/start.S
+5
-1
cpu/mcf532x/start.S
cpu/mcf532x/start.S
+2
-2
cpu/mips/config.mk
cpu/mips/config.mk
+1
-1
cpu/mips/start.S
cpu/mips/start.S
+13
-6
cpu/mpc85xx/cpu.c
cpu/mpc85xx/cpu.c
+6
-1
cpu/mpc85xx/start.S
cpu/mpc85xx/start.S
+12
-12
drivers/Makefile
drivers/Makefile
+1
-1
drivers/serial/Makefile
drivers/serial/Makefile
+1
-1
drivers/serial/serial_pl010.c
drivers/serial/serial_pl010.c
+0
-0
drivers/serial/serial_pl011.c
drivers/serial/serial_pl011.c
+0
-0
drivers/serial/serial_pl011.h
drivers/serial/serial_pl011.h
+0
-0
drivers/tsec.c
drivers/tsec.c
+1
-0
examples/mips.lds
examples/mips.lds
+7
-7
include/asm-mips/addrspace.h
include/asm-mips/addrspace.h
+1
-1
include/configs/M5253EVBE.h
include/configs/M5253EVBE.h
+1
-1
include/configs/M5282EVB.h
include/configs/M5282EVB.h
+1
-1
include/configs/M5329EVB.h
include/configs/M5329EVB.h
+1
-1
include/configs/M54455EVB.h
include/configs/M54455EVB.h
+20
-16
include/configs/MPC8541CDS.h
include/configs/MPC8541CDS.h
+1
-0
include/configs/MPC8548CDS.h
include/configs/MPC8548CDS.h
+1
-0
include/configs/MPC8555CDS.h
include/configs/MPC8555CDS.h
+1
-0
include/configs/MPC8568MDS.h
include/configs/MPC8568MDS.h
+1
-1
include/configs/atstk1002.h
include/configs/atstk1002.h
+3
-8
lib_m68k/m68k_linux.c
lib_m68k/m68k_linux.c
+3
-0
mips_config.mk
mips_config.mk
+25
-0
未找到文件。
Makefile
浏览文件 @
e34a0438
...
...
@@ -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/cds/common/ft_board.c
浏览文件 @
e34a0438
...
...
@@ -37,17 +37,24 @@ static void cds_pci_fixup(void *blob)
map
=
ft_get_prop
(
blob
,
"/"
OF_SOC
"/pci@8000/interrupt-map"
,
&
len
);
len
/=
sizeof
(
u32
);
if
(
!
map
)
map
=
ft_get_prop
(
blob
,
"/"
OF_PCI
"/interrupt-map"
,
&
len
);
slot
=
get_pci_slot
();
if
(
map
)
{
len
/=
sizeof
(
u32
);
for
(
i
=
0
;
i
<
len
;
i
+=
7
)
{
/* We rotate the interrupt pins so that the mapping
* changes depending on the slot the carrier card is in.
*/
map
[
3
]
=
((
map
[
3
]
+
slot
-
2
)
%
4
)
+
1
;
slot
=
get_pci_slot
();
map
+=
7
;
for
(
i
=
0
;
i
<
len
;
i
+=
7
)
{
/* We rotate the interrupt pins so that the mapping
* changes depending on the slot the carrier card is in.
*/
map
[
3
]
=
((
map
[
3
]
+
slot
-
2
)
%
4
)
+
1
;
map
+=
7
;
}
}
else
{
printf
(
"*** Warning - No PCI node found
\n
"
);
}
}
#endif
...
...
board/dbau1x00/u-boot.lds
浏览文件 @
e34a0438
...
...
@@ -43,14 +43,14 @@ SECTIONS
. = ALIGN(4);
.data : { *(.data) }
. = ALIGN(4);
.sdata : { *(.sdata) }
_gp = ALIGN(16);
. = .;
_gp = ALIGN(16) + 0x7ff0;
__got_start = .;
.got : { *(.got) }
__got_end = .;
.got : {
__got_start = .;
*(.got)
__got_end = .;
}
.sdata : { *(.sdata) }
...
...
board/freescale/m54455evb/config.mk
浏览文件 @
e34a0438
...
...
@@ -22,4 +22,6 @@
# MA 02111-1307 USA
#
TEXT_BASE
=
0
sinclude
$(OBJTREE)/board/$(BOARDDIR)/config.tmp
PLATFORM_CPPFLAGS
+=
-DTEXT_BASE
=
$(TEXT_BASE)
board/gth2/u-boot.lds
浏览文件 @
e34a0438
...
...
@@ -43,14 +43,14 @@ SECTIONS
. = ALIGN(4);
.data : { *(.data) }
. =
ALIGN(4)
;
.sdata : { *(.sdata) }
. =
.
;
_gp = ALIGN(16) + 0x7ff0;
_gp = ALIGN(16);
__got_start = .;
.got : { *(.got) }
__got_end = .;
.got : {
__got_start = .;
*(.got)
__got_end = .;
}
.sdata : { *(.sdata) }
...
...
board/incaip/u-boot.lds
浏览文件 @
e34a0438
...
...
@@ -43,14 +43,14 @@ SECTIONS
. = ALIGN(4);
.data : { *(.data) }
. = ALIGN(4);
.sdata : { *(.sdata) }
_gp = ALIGN(16);
. = .;
_gp = ALIGN(16) + 0x7ff0;
__got_start = .;
.got : { *(.got) }
__got_end = .;
.got : {
__got_start = .;
*(.got)
__got_end = .;
}
.sdata : { *(.sdata) }
...
...
board/m5282evb/m5282evb.c
浏览文件 @
e34a0438
...
...
@@ -89,4 +89,5 @@ long int initdram (int board_type)
/* Write to the SDRAM Mode Register */
*
(
u32
*
)(
CFG_SDRAM_BASE
+
0x400
)
=
0xA5A59696
;
}
return
dramsize
;
}
board/pb1x00/u-boot.lds
浏览文件 @
e34a0438
...
...
@@ -43,14 +43,14 @@ SECTIONS
. = ALIGN(4);
.data : { *(.data) }
. =
ALIGN(4)
;
.sdata : { *(.sdata) }
. =
.
;
_gp = ALIGN(16) + 0x7ff0;
_gp = ALIGN(16);
__got_start = .;
.got : { *(.got) }
__got_end = .;
.got : {
__got_start = .;
*(.got)
__got_end = .;
}
.sdata : { *(.sdata) }
...
...
board/purple/u-boot.lds
浏览文件 @
e34a0438
...
...
@@ -53,14 +53,14 @@ SECTIONS
. = ALIGN(4);
.data : { *(.data) }
. = ALIGN(4);
.sdata : { *(.sdata) }
_gp = ALIGN(16);
. = .;
_gp = ALIGN(16) + 0x7ff0;
__got_start = .;
.got : { *(.got) }
__got_end = .;
.got : {
__got_start = .;
*(.got)
__got_end = .;
}
.sdata : { *(.sdata) }
...
...
board/tb0229/u-boot.lds
浏览文件 @
e34a0438
...
...
@@ -43,14 +43,14 @@ SECTIONS
. = ALIGN(4);
.data : { *(.data) }
. = ALIGN(4);
.sdata : { *(.sdata) }
_gp = ALIGN(16);
. = .;
_gp = ALIGN(16) + 0x7ff0;
__got_start = .;
.got : { *(.got) }
__got_end = .;
.got : {
__got_start = .;
*(.got)
__got_end = .;
}
.sdata : { *(.sdata) }
...
...
cpu/mcf52x2/start.S
浏览文件 @
e34a0438
...
...
@@ -58,7 +58,7 @@ _vectors:
.
long
0
x00000000
/*
Flash
offset
is
0
until
we
setup
CS0
*/
#if defined(CONFIG_R5200)
.
long
0
x400
#elif defined(CONFIG_M5282)
#elif defined(CONFIG_M5282)
&& (TEXT_BASE == CFG_INT_FLASH_BASE)
.
long
_start
-
TEXT_BASE
#else
.
long
_START
...
...
@@ -177,7 +177,11 @@ _after_flashbar_copy:
*
therefore
no
VBR
to
set
*/
#if !defined(CONFIG_MONITOR_IS_IN_RAM)
#if defined(CONFIG_M5282) && (TEXT_BASE == CFG_INT_FLASH_BASE)
move.l
#
CFG_INT_FLASH_BASE
,
%
d0
#else
move.l
#
CFG_FLASH_BASE
,
%
d0
#endif
movec
%
d0
,
%
VBR
#endif
...
...
cpu/mcf532x/start.S
浏览文件 @
e34a0438
...
...
@@ -131,7 +131,7 @@ _start:
movec
%
d0
,
%
VBR
move.l
#(
CFG_INIT_RAM_ADDR
+
CFG_INIT_RAM_CTRL
),
%
d0
movec
%
d0
,
%
RAMBAR
0
movec
%
d0
,
%
RAMBAR
1
/
*
invalidate
and
disable
cache
*/
move.l
#
0x01000000
,
%
d0
/*
Invalidate
cache
cmd
*/
...
...
@@ -268,7 +268,7 @@ _int_handler:
icache_enable
:
move.l
#
0x01000000
,
%
d0
/*
Invalidate
cache
cmd
*/
movec
%
d0
,
%
CACR
/*
Invalidate
cache
*/
move.l
#(
CFG_SDRAM_BASE
+
0x
c000
+
((
CFG_SDRAM_SIZE
&
0x1fe0
)
<<
11
)
),
%
d0
move.l
#(
CFG_SDRAM_BASE
+
0x
1c000
),
%
d0
movec
%
d0
,
%
ACR0
/*
Enable
cache
*/
move.l
#
0x80000200
,
%
d0
/*
Setup
cache
mask
*/
...
...
cpu/mips/config.mk
浏览文件 @
e34a0438
...
...
@@ -35,6 +35,6 @@ else
ENDIANNESS
=
-EB
endif
MIPSFLAGS
+=
$(ENDIANNESS)
-mabicalls
MIPSFLAGS
+=
$(ENDIANNESS)
PLATFORM_CPPFLAGS
+=
$(MIPSFLAGS)
cpu/mips/start.S
浏览文件 @
e34a0438
...
...
@@ -234,11 +234,11 @@ reset:
li
t0
,
CONF_CM_UNCACHED
mtc0
t0
,
CP0_CONFIG
/
*
Initialize
GOT
pointer
.
/
*
Initialize
$gp
.
*/
bal
1
f
nop
.
word
_GLOBAL_OFFSET_TABLE_
.
word
_gp
1:
move
gp
,
ra
lw
t1
,
0
(
ra
)
...
...
@@ -306,9 +306,9 @@ relocate_code:
move
t1
,
a2
/
*
*
Fix
GOT
pointer
:
*
Fix
$gp
:
*
*
New
GOT
-
PTR
=
(
old
GOT
-
PTR
-
CFG_MONITOR_BASE
)
+
Destination
Address
*
New
$gp
=
(
Old
$gp
-
CFG_MONITOR_BASE
)
+
Destination
Address
*/
move
t6
,
gp
sub
gp
,
CFG_MONITOR_BASE
...
...
@@ -341,15 +341,22 @@ relocate_code:
j
t0
nop
.
gpword
_GLOBAL_OFFSET_TABLE_
/*
_GLOBAL_OFFSET_TABLE_
-
_gp
*/
.
word
uboot_end_data
.
word
uboot_end
.
word
num_got_entries
in_ram
:
/
*
Now
we
want
to
update
GOT
.
/
*
*
Now
we
want
to
update
GOT
.
*
*
GOT
[
0
]
is
reserved
.
GOT
[
1
]
is
also
reserved
for
the
dynamic
object
*
generated
by
GNU
ld
.
Skip
these
reserved
entries
from
relocation
.
*/
lw
t3
,
-
4
(
t0
)
/*
t3
<--
num_got_entries
*/
addi
t4
,
gp
,
8
/*
Skipping
first
two
entries
.
*/
lw
t4
,
-
16
(
t0
)
/*
t4
<--
(
_GLOBAL_OFFSET_TABLE_
-
_gp
)
*/
add
t4
,
t4
,
gp
/*
t4
now
holds
_GLOBAL_OFFSET_TABLE_
*/
addi
t4
,
t4
,
8
/*
Skipping
first
two
entries
.
*/
li
t2
,
2
1
:
lw
t1
,
0
(
t4
)
...
...
cpu/mpc85xx/cpu.c
浏览文件 @
e34a0438
...
...
@@ -163,7 +163,12 @@ int do_reset (cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
* Initiate hard reset in debug control register DBCR0
* Make sure MSR[DE] = 1
*/
unsigned
long
val
;
unsigned
long
val
,
msr
;
msr
=
mfmsr
();
msr
|=
MSR_DE
;
mtmsr
(
msr
);
val
=
mfspr
(
DBCR0
);
val
|=
0x70000000
;
mtspr
(
DBCR0
,
val
);
...
...
cpu/mpc85xx/start.S
浏览文件 @
e34a0438
...
...
@@ -218,6 +218,8 @@ _start_e500:
bdnz
0
b
/
*
Clear
and
set
up
some
registers
.
*/
li
r0
,
0
mtmsr
r0
li
r0
,
0x0000
lis
r1
,
0xffff
mtspr
DEC
,
r0
/*
prevent
dec
exceptions
*/
...
...
@@ -266,18 +268,17 @@ _start_e500:
*/
lis
r3
,
CFG_INIT_RAM_ADDR
@
h
ori
r3
,
r3
,
CFG_INIT_RAM_ADDR
@
l
li
r2
,
512
/*
512
*
32
=
16
K
*/
li
r2
,
(
CFG_DCACHE_SIZE
/
(
2
*
CFG_CACHELINE_SIZE
))
mtctr
r2
li
r0
,
0
1
:
dcbz
r0
,
r3
dcbtls
0
,
r0
,
r3
addi
r3
,
r3
,
32
addi
r3
,
r3
,
CFG_CACHELINE_SIZE
bdnz
1
b
/
*
Jump
out
the
last
4
K
page
and
continue
to
'normal'
start
*/
#ifdef CFG_RAMBOOT
bl
3
f
b
_start_cont
#else
/
*
Calculate
absolute
address
in
FLASH
and
jump
there
*/
...
...
@@ -286,15 +287,9 @@ _start_e500:
ori
r3
,
r3
,
CFG_MONITOR_BASE
@
l
addi
r3
,
r3
,
_start_cont
-
_start
+
_START_OFFSET
mtlr
r3
blr
#endif
3
:
li
r0
,
0
mtspr
SRR1
,
r0
/*
Keep
things
disabled
for
now
*/
mflr
r1
mtspr
SRR0
,
r1
rfi
isync
.
text
.
globl
_start
_start
:
...
...
@@ -701,6 +696,7 @@ in8:
.
globl
out8
out8
:
stb
r4
,
0x0000
(
r3
)
sync
blr
/*-------------------------------------------------------------------------------
*/
...
...
@@ -710,6 +706,7 @@ out8:
.
globl
out16
out16
:
sth
r4
,
0x0000
(
r3
)
sync
blr
/*-------------------------------------------------------------------------------
*/
...
...
@@ -719,6 +716,7 @@ out16:
.
globl
out16r
out16r
:
sthbrx
r4
,
r0
,
r3
sync
blr
/*-------------------------------------------------------------------------------
*/
...
...
@@ -728,6 +726,7 @@ out16r:
.
globl
out32
out32
:
stw
r4
,
0x0000
(
r3
)
sync
blr
/*-------------------------------------------------------------------------------
*/
...
...
@@ -737,6 +736,7 @@ out32:
.
globl
out32r
out32r
:
stwbrx
r4
,
r0
,
r3
sync
blr
/*-------------------------------------------------------------------------------
*/
...
...
@@ -1061,11 +1061,11 @@ unlock_ram_in_cache:
/
*
invalidate
the
INIT_RAM
section
*/
lis
r3
,(
CFG_INIT_RAM_ADDR
&
~
31
)
@
h
ori
r3
,
r3
,(
CFG_INIT_RAM_ADDR
&
~
31
)
@
l
li
r4
,
512
li
r4
,
(
CFG_DCACHE_SIZE
/
(
2
*
CFG_CACHELINE_SIZE
))
mtctr
r4
1
:
icbi
r0
,
r3
dcbi
r0
,
r3
addi
r3
,
r3
,
32
addi
r3
,
r3
,
CFG_CACHELINE_SIZE
bdnz
1
b
sync
/*
Wait
for
all
icbi
to
complete
on
bus
*/
isync
...
...
drivers/Makefile
浏览文件 @
e34a0438
...
...
@@ -45,7 +45,7 @@ COBJS = 3c589.o 5701rls.o ali512x.o at45.o ata_piix.o \
s3c4510b_eth.o s3c4510b_uart.o
\
sed13806.o sed156x.o
\
serial.o serial_max3100.o
\
serial_
pl010.o serial_pl011.o serial_
xuartlite.o
\
serial_xuartlite.o
\
sil680.o sl811_usb.o sm501.o smc91111.o smiLynxEM.o
\
status_led.o sym53c8xx.o systemace.o ahci.o
\
ti_pci1410a.o tigon3.o tqm8xx_pcmcia.o tsec.o
\
...
...
drivers/serial/Makefile
浏览文件 @
e34a0438
...
...
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
LIB
:=
$(obj)
libserial.a
COBJS
:=
mcfuart.o
COBJS
:=
mcfuart.o
serial_pl010.o serial_pl011.o
SRCS
:=
$(COBJS:.o=.c)
OBJS
:=
$(
addprefix
$(obj)
,
$(COBJS)
)
...
...
drivers/serial_pl010.c
→
drivers/serial
/serial
_pl010.c
浏览文件 @
e34a0438
文件已移动
drivers/serial_pl011.c
→
drivers/serial
/serial
_pl011.c
浏览文件 @
e34a0438
文件已移动
drivers/serial_pl011.h
→
drivers/serial
/serial
_pl011.h
浏览文件 @
e34a0438
文件已移动
drivers/tsec.c
浏览文件 @
e34a0438
...
...
@@ -803,6 +803,7 @@ static void startup_tsec(struct eth_device *dev)
/* Tell the DMA it is clear to go */
regs
->
dmactrl
|=
DMACTRL_INIT_SETTINGS
;
regs
->
tstat
=
TSTAT_CLEAR_THALT
;
regs
->
rstat
=
RSTAT_CLEAR_RHALT
;
regs
->
dmactrl
&=
~
(
DMACTRL_GRS
|
DMACTRL_GTS
);
}
...
...
examples/mips.lds
浏览文件 @
e34a0438
...
...
@@ -39,14 +39,14 @@ SECTIONS
. = ALIGN(4);
.data : { *(.data) }
. =
ALIGN(4)
;
.sdata : { *(.sdata) }
. =
.
;
_gp = ALIGN(16) + 0x7ff0;
_gp = ALIGN(16);
__got_start = .;
.got : { *(.got) }
__got_end = .;
.got : {
__got_start = .;
*(.got)
__got_end = .;
}
.sdata : { *(.sdata) }
...
...
include/asm-mips/addrspace.h
浏览文件 @
e34a0438
...
...
@@ -49,7 +49,7 @@
cannot access physical memory directly from core */
#define UNCACHED_SDRAM(a) (((unsigned long)(a)) | 0x20000000)
#else
/* !CONFIG_AU1X00 */
#define UNCACHED_SDRAM(a)
PHYS
ADDR(a)
#define UNCACHED_SDRAM(a)
KSEG1
ADDR(a)
#endif
/* CONFIG_AU1X00 */
#endif
/* __ASSEMBLY__ */
/*
...
...
include/configs/M5253EVBE.h
浏览文件 @
e34a0438
...
...
@@ -146,7 +146,7 @@
* Please note that CFG_SDRAM_BASE _must_ start at 0
*/
#define CFG_SDRAM_BASE 0x00000000
#define CFG_SDRAM_SIZE
16
/* SDRAM size in MB */
#define CFG_SDRAM_SIZE
8
/* SDRAM size in MB */
#ifdef CONFIG_MONITOR_IS_IN_RAM
#define CFG_MONITOR_BASE 0x20000
...
...
include/configs/M5282EVB.h
浏览文件 @
e34a0438
...
...
@@ -163,7 +163,7 @@
* Please note that CFG_SDRAM_BASE _must_ start at 0
*/
#define CFG_SDRAM_BASE 0x00000000
#define CFG_SDRAM_SIZE
8
/* SDRAM size in MB */
#define CFG_SDRAM_SIZE
16
/* SDRAM size in MB */
#define CFG_FLASH_BASE 0xffe00000
#define CFG_INT_FLASH_BASE 0xf0000000
#define CFG_INT_FLASH_ENABLE 0x21
...
...
include/configs/M5329EVB.h
浏览文件 @
e34a0438
...
...
@@ -175,7 +175,7 @@
* Please note that CFG_SDRAM_BASE _must_ start at 0
*/
#define CFG_SDRAM_BASE 0x40000000
#define CFG_SDRAM_SIZE
16
/* SDRAM size in MB */
#define CFG_SDRAM_SIZE
32
/* SDRAM size in MB */
#define CFG_SDRAM_CFG1 0x53722730
#define CFG_SDRAM_CFG2 0x56670000
#define CFG_SDRAM_CTRL 0xE1092000
...
...
include/configs/M54455EVB.h
浏览文件 @
e34a0438
...
...
@@ -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 */
include/configs/MPC8541CDS.h
浏览文件 @
e34a0438
...
...
@@ -316,6 +316,7 @@ extern unsigned long get_clock_freq(void);
#define OF_SOC "soc8541@e0000000"
#define OF_TBCLK (bd->bi_busfreq / 8)
#define OF_STDOUT_PATH "/soc8541@e0000000/serial@4600"
#define OF_PCI "pci@e0008000"
/*
* I2C
...
...
include/configs/MPC8548CDS.h
浏览文件 @
e34a0438
...
...
@@ -340,6 +340,7 @@ extern unsigned long get_clock_freq(void);
#define OF_SOC "soc8548@e0000000"
#define OF_TBCLK (bd->bi_busfreq / 8)
#define OF_STDOUT_PATH "/soc8548@e0000000/serial@4600"
#define OF_PCI "pci@e0008000"
/*
* I2C
...
...
include/configs/MPC8555CDS.h
浏览文件 @
e34a0438
...
...
@@ -316,6 +316,7 @@ extern unsigned long get_clock_freq(void);
#define OF_SOC "soc8555@e0000000"
#define OF_TBCLK (bd->bi_busfreq / 8)
#define OF_STDOUT_PATH "/soc8555@e0000000/serial@4600"
#define OF_PCI "pci@e0008000"
/*
* I2C
...
...
include/configs/MPC8568MDS.h
浏览文件 @
e34a0438
...
...
@@ -297,7 +297,7 @@ extern unsigned long get_clock_freq(void);
#define OF_SOC "soc8568@e0000000"
#define OF_QE "qe@e0080000"
#define OF_TBCLK (bd->bi_busfreq / 8)
#define OF_STDOUT_PATH "/soc8568@e0000000/serial@4
6
00"
#define OF_STDOUT_PATH "/soc8568@e0000000/serial@4
5
00"
/*
* I2C
...
...
include/configs/atstk1002.h
浏览文件 @
e34a0438
...
...
@@ -114,15 +114,10 @@
#define CONFIG_AUTOBOOT_STOP_STR " "
/*
* These are "locally administered ethernet addresses" generated by
* ./tools/gen_eth_addr
*
* After booting the board for the first time, new addresses should be
* generated and assigned to the environment variables "ethaddr" and
* "eth1addr".
* After booting the board for the first time, new ethernet addresses
* should be generated and assigned to the environment variables
* "ethaddr" and "eth1addr". This is normally done during production.
*/
#define CONFIG_ETHADDR 6a:87:71:14:cd:cb
#define CONFIG_ETH1ADDR ca:f8:15:e6:3e:e6
#define CONFIG_OVERWRITE_ETHADDR_ONCE 1
#define CONFIG_NET_MULTI 1
...
...
lib_m68k/m68k_linux.c
浏览文件 @
e34a0438
...
...
@@ -26,6 +26,7 @@
#include <image.h>
#include <zlib.h>
#include <bzlib.h>
#include <watchdog.h>
#include <environment.h>
#include <asm/byteorder.h>
...
...
@@ -36,6 +37,8 @@ DECLARE_GLOBAL_DATA_PTR;
#define LINUX_MAX_ENVS 256
#define LINUX_MAX_ARGS 256
#define CHUNKSZ (64 * 1024)
#ifdef CONFIG_SHOW_BOOT_PROGRESS
# include <status_led.h>
# define SHOW_BOOT_PROGRESS(arg) show_boot_progress(arg)
...
...
mips_config.mk
浏览文件 @
e34a0438
...
...
@@ -22,3 +22,28 @@
#
PLATFORM_CPPFLAGS
+=
-DCONFIG_MIPS
-D__MIPS__
#
# From Linux arch/mips/Makefile
#
# GCC uses -G 0 -mabicalls -fpic as default. We don't want PIC in the kernel
# code since it only slows down the whole thing. At some point we might make
# use of global pointer optimizations but their use of $28 conflicts with
# the current pointer optimization.
#
# The DECStation requires an ECOFF kernel for remote booting, other MIPS
# machines may also. Since BFD is incredibly buggy with respect to
# crossformat linking we rely on the elf2ecoff tool for format conversion.
#
# cflags-y += -G 0 -mno-abicalls -fno-pic -pipe
# cflags-y += -msoft-float
# LDFLAGS_vmlinux += -G 0 -static -n -nostdlib
# MODFLAGS += -mlong-calls
#
#
# Meanwhile, U-Boot rely on PIC. We add proper switches explicitly.
#
PLATFORM_CPPFLAGS
+=
-G
0
-mabicalls
-fpic
-pipe
PLATFORM_CPPFLAGS
+=
-msoft-float
PLATFORM_LDFLAGS
+=
-G
0
-static
-n
-nostdlib
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录