Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor 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
vesta
u-boot-2015.04
Commits
67fea022
Commit
67fea022
authored
18 years ago
by
Markus Klotzbuecher
Committed by
Markus Klotzbuecher
18 years ago
Browse files
Options
Downloads
Patches
Plain Diff
SPC1920: cleanup memory contoller setup
parent
8fc2102f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
board/spc1920/hpi.c
+2
-2
2 additions, 2 deletions
board/spc1920/hpi.c
board/spc1920/spc1920.c
+3
-8
3 additions, 8 deletions
board/spc1920/spc1920.c
include/configs/spc1920.h
+5
-5
5 additions, 5 deletions
include/configs/spc1920.h
with
10 additions
and
15 deletions
board/spc1920/hpi.c
+
2
−
2
View file @
67fea022
...
@@ -148,8 +148,8 @@ int hpi_init(void)
...
@@ -148,8 +148,8 @@ int hpi_init(void)
udelay
(
100
);
udelay
(
100
);
memctl
->
memc_mamr
=
CFG_MAMR
;
memctl
->
memc_mamr
=
CFG_MAMR
;
memctl
->
memc_or3
=
CFG_OR3
_PRELIM
;
memctl
->
memc_or3
=
CFG_OR3
;
memctl
->
memc_br3
=
CFG_BR3
_PRELIM
;
memctl
->
memc_br3
=
CFG_BR3
;
/* reset dsp */
/* reset dsp */
dsp_reset
();
dsp_reset
();
...
...
This diff is collapsed.
Click to expand it.
board/spc1920/spc1920.c
+
3
−
8
View file @
67fea022
...
@@ -175,14 +175,9 @@ long int initdram (int board_type)
...
@@ -175,14 +175,9 @@ long int initdram (int board_type)
/* initalize the DSP Host Port Interface */
/* initalize the DSP Host Port Interface */
hpi_init
();
hpi_init
();
/* PLD Setup */
/* FRAM Setup */
memctl
->
memc_or4
=
CFG_OR4_PRELIM
;
memctl
->
memc_or4
=
CFG_OR4
;
memctl
->
memc_br4
=
CFG_BR4_PRELIM
;
memctl
->
memc_br4
=
CFG_BR4
;
udelay
(
1000
);
/* PLD Setup */
memctl
->
memc_or5
=
CFG_OR5_PRELIM
;
memctl
->
memc_br5
=
CFG_BR5_PRELIM
;
udelay
(
1000
);
udelay
(
1000
);
return
(
size_b0
);
return
(
size_b0
);
...
...
This diff is collapsed.
Click to expand it.
include/configs/spc1920.h
+
5
−
5
View file @
67fea022
...
@@ -361,14 +361,14 @@
...
@@ -361,14 +361,14 @@
* DSP Host Port Interface CS3
* DSP Host Port Interface CS3
*/
*/
#define CFG_SPC1920_HPI_BASE 0x90000000
#define CFG_SPC1920_HPI_BASE 0x90000000
#define CFG_PRELIM_OR3_AM 0xF
0
000000
#define CFG_PRELIM_OR3_AM 0xF
8
000000
#define CFG_OR3
_PRELIM
(CFG_PRELIM_OR3_AM | \
#define CFG_OR3 (CFG_PRELIM_OR3_AM | \
OR_G5LS | \
OR_G5LS | \
OR_SCY_0_CLK | \
OR_SCY_0_CLK | \
OR_BI)
OR_BI)
#define CFG_BR3
_PRELIM
((CFG_SPC1920_HPI_BASE & BR_BA_MSK) | \
#define CFG_BR3 ((CFG_SPC1920_HPI_BASE & BR_BA_MSK) | \
BR_MS_UPMA | \
BR_MS_UPMA | \
BR_PS_16 | \
BR_PS_16 | \
BR_V);
BR_V);
...
@@ -396,13 +396,13 @@
...
@@ -396,13 +396,13 @@
*/
*/
#define CFG_SPC1920_FRAM_BASE 0x80100000
#define CFG_SPC1920_FRAM_BASE 0x80100000
#define CFG_PRELIM_OR4_AM 0xffff8000
#define CFG_PRELIM_OR4_AM 0xffff8000
#define CFG_OR4
_PRELIM
(CFG_PRELIM_OR4_AM | \
#define CFG_OR4 (CFG_PRELIM_OR4_AM | \
OR_ACS_DIV2 | \
OR_ACS_DIV2 | \
OR_BI | \
OR_BI | \
OR_SCY_4_CLK | \
OR_SCY_4_CLK | \
OR_TRLX)
OR_TRLX)
#define CFG_BR4
_PRELIM
((CFG_SPC1920_FRAM_BASE & BR_BA_MSK) | BR_PS_8 | BR_V);
#define CFG_BR4 ((CFG_SPC1920_FRAM_BASE & BR_BA_MSK) | BR_PS_8 | BR_V);
/*
/*
* PLD CS5
* PLD CS5
...
...
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