Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
9bc97a3d
Commit
9bc97a3d
authored
19 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Plain Diff
Fix Lite500B support: Merge with /home/raj/git/u-boot.l5200b_pci
parents
71b405df
b66a9383
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
board/icecube/icecube.c
+21
-0
21 additions, 0 deletions
board/icecube/icecube.c
cpu/mpc5xxx/cpu.c
+5
-5
5 additions, 5 deletions
cpu/mpc5xxx/cpu.c
include/configs/IceCube.h
+5
-3
5 additions, 3 deletions
include/configs/IceCube.h
include/mpc5xxx.h
+1
-0
1 addition, 0 deletions
include/mpc5xxx.h
with
32 additions
and
8 deletions
board/icecube/icecube.c
+
21
−
0
View file @
9bc97a3d
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include
<common.h>
#include
<common.h>
#include
<mpc5xxx.h>
#include
<mpc5xxx.h>
#include
<pci.h>
#include
<pci.h>
#include
<asm/processor.h>
#if defined(CONFIG_LITE5200B)
#if defined(CONFIG_LITE5200B)
#include
"mt46v32m16.h"
#include
"mt46v32m16.h"
...
@@ -89,6 +90,8 @@ long int initdram (int board_type)
...
@@ -89,6 +90,8 @@ long int initdram (int board_type)
{
{
ulong
dramsize
=
0
;
ulong
dramsize
=
0
;
ulong
dramsize2
=
0
;
ulong
dramsize2
=
0
;
uint
svr
,
pvr
;
#ifndef CFG_RAMBOOT
#ifndef CFG_RAMBOOT
ulong
test1
,
test2
;
ulong
test1
,
test2
;
...
@@ -183,6 +186,24 @@ long int initdram (int board_type)
...
@@ -183,6 +186,24 @@ long int initdram (int board_type)
#endif
/* CFG_RAMBOOT */
#endif
/* CFG_RAMBOOT */
/*
* On MPC5200B we need to set the special configuration delay in the
* DDR controller. Please refer to Freescale's AN3221 "MPC5200B SDRAM
* Initialization and Configuration", 3.3.1 SDelay--MBAR + 0x0190:
*
* "The SDelay should be written to a value of 0x00000004. It is
* required to account for changes caused by normal wafer processing
* parameters."
*/
svr
=
get_svr
();
pvr
=
get_pvr
();
if
((
SVR_MJREV
(
svr
)
>=
2
)
&&
(
PVR_MAJ
(
pvr
)
==
1
)
&&
(
PVR_MIN
(
pvr
)
==
4
))
{
*
(
vu_long
*
)
MPC5XXX_SDRAM_SDELAY
=
0x04
;
__asm__
volatile
(
"sync"
);
}
return
dramsize
+
dramsize2
;
return
dramsize
+
dramsize2
;
}
}
...
...
This diff is collapsed.
Click to expand it.
cpu/mpc5xxx/cpu.c
+
5
−
5
View file @
9bc97a3d
...
@@ -38,7 +38,7 @@ int checkcpu (void)
...
@@ -38,7 +38,7 @@ int checkcpu (void)
ulong
clock
=
gd
->
cpu_clk
;
ulong
clock
=
gd
->
cpu_clk
;
char
buf
[
32
];
char
buf
[
32
];
#ifndef CONFIG_MGT5100
#ifndef CONFIG_MGT5100
uint
svr
;
uint
svr
,
pvr
;
#endif
#endif
puts
(
"CPU: "
);
puts
(
"CPU: "
);
...
@@ -47,7 +47,8 @@ int checkcpu (void)
...
@@ -47,7 +47,8 @@ int checkcpu (void)
puts
(
CPU_ID_STR
);
puts
(
CPU_ID_STR
);
printf
(
" (JTAG ID %08lx)"
,
*
(
vu_long
*
)
MPC5XXX_CDM_JTAGID
);
printf
(
" (JTAG ID %08lx)"
,
*
(
vu_long
*
)
MPC5XXX_CDM_JTAGID
);
#else
#else
svr
=
get_svr
();
svr
=
get_svr
();
pvr
=
get_pvr
();
switch
(
SVR_VER
(
svr
))
{
switch
(
SVR_VER
(
svr
))
{
case
SVR_MPC5200
:
case
SVR_MPC5200
:
printf
(
"MPC5200"
);
printf
(
"MPC5200"
);
...
@@ -57,11 +58,10 @@ int checkcpu (void)
...
@@ -57,11 +58,10 @@ int checkcpu (void)
break
;
break
;
}
}
printf
(
" v%d.%d"
,
SVR_MJREV
(
svr
),
SVR_MNREV
(
svr
));
printf
(
" v%d.%d, Core v%d.%d"
,
SVR_MJREV
(
svr
),
SVR_MNREV
(
svr
),
PVR_MAJ
(
pvr
),
PVR_MIN
(
pvr
));
#endif
#endif
printf
(
" at %s MHz
\n
"
,
strmhz
(
buf
,
clock
));
printf
(
" at %s MHz
\n
"
,
strmhz
(
buf
,
clock
));
return
0
;
return
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
include/configs/IceCube.h
+
5
−
3
View file @
9bc97a3d
...
@@ -56,7 +56,9 @@
...
@@ -56,7 +56,9 @@
* 0x40000000 - 0x4fffffff - PCI Memory
* 0x40000000 - 0x4fffffff - PCI Memory
* 0x50000000 - 0x50ffffff - PCI IO Space
* 0x50000000 - 0x50ffffff - PCI IO Space
*/
*/
#define CONFIG_PCI 1
#define CONFIG_PCI
#if defined(CONFIG_PCI)
#define CONFIG_PCI_PNP 1
#define CONFIG_PCI_PNP 1
#define CONFIG_PCI_SCAN_SHOW 1
#define CONFIG_PCI_SCAN_SHOW 1
...
@@ -67,6 +69,8 @@
...
@@ -67,6 +69,8 @@
#define CONFIG_PCI_IO_BUS 0x50000000
#define CONFIG_PCI_IO_BUS 0x50000000
#define CONFIG_PCI_IO_PHYS CONFIG_PCI_IO_BUS
#define CONFIG_PCI_IO_PHYS CONFIG_PCI_IO_BUS
#define CONFIG_PCI_IO_SIZE 0x01000000
#define CONFIG_PCI_IO_SIZE 0x01000000
#define ADD_PCI_CMD CFG_CMD_PCI
#endif
#define CFG_XLB_PIPELINING 1
#define CFG_XLB_PIPELINING 1
...
@@ -76,8 +80,6 @@
...
@@ -76,8 +80,6 @@
#define CFG_RX_ETH_BUFFER 8
/* use 8 rx buffer on eepro100 */
#define CFG_RX_ETH_BUFFER 8
/* use 8 rx buffer on eepro100 */
#define CONFIG_NS8382X 1
#define CONFIG_NS8382X 1
#define ADD_PCI_CMD CFG_CMD_PCI
#else
/* MPC5100 */
#else
/* MPC5100 */
#define CONFIG_MII 1
#define CONFIG_MII 1
...
...
This diff is collapsed.
Click to expand it.
include/mpc5xxx.h
+
1
−
0
View file @
9bc97a3d
...
@@ -131,6 +131,7 @@
...
@@ -131,6 +131,7 @@
#if defined(CONFIG_MGT5100)
#if defined(CONFIG_MGT5100)
#define MPC5XXX_SDRAM_XLBSEL (MPC5XXX_SDRAM + 0x0010)
#define MPC5XXX_SDRAM_XLBSEL (MPC5XXX_SDRAM + 0x0010)
#endif
#endif
#define MPC5XXX_SDRAM_SDELAY (MPC5XXX_SDRAM + 0x0090)
/* Clock Distribution Module */
/* Clock Distribution Module */
#define MPC5XXX_CDM_JTAGID (MPC5XXX_CDM + 0x0000)
#define MPC5XXX_CDM_JTAGID (MPC5XXX_CDM + 0x0000)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment