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
939403bc
Commit
939403bc
authored
21 years ago
by
Stefan Roese
Browse files
Options
Downloads
Patches
Plain Diff
Updated for PPC405EP boards (2 banks only).
parent
b828dda6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/ppc4xx/spd_sdram.c
+8
-0
8 additions, 0 deletions
cpu/ppc4xx/spd_sdram.c
with
8 additions
and
0 deletions
cpu/ppc4xx/spd_sdram.c
+
8
−
0
View file @
939403bc
...
...
@@ -432,9 +432,15 @@ long int spd_sdram(int(read_spd)(uint addr))
tmp
=
SDRAM0_BXCR_SZ
(
bank_code
)
|
SDRAM0_BXCR_AM
(
mode
)
|
1
;
sdram0_b0cr
=
(
bank_size
)
*
0
|
tmp
;
#ifndef CONFIG_405EP
/* not on PPC405EP */
if
(
bank_cnt
>
1
)
sdram0_b2cr
=
(
bank_size
)
*
1
|
tmp
;
if
(
bank_cnt
>
2
)
sdram0_b1cr
=
(
bank_size
)
*
2
|
tmp
;
if
(
bank_cnt
>
3
)
sdram0_b3cr
=
(
bank_size
)
*
3
|
tmp
;
#else
/* PPC405EP chip only supports two SDRAM banks */
if
(
bank_cnt
>
1
)
sdram0_b1cr
=
(
bank_size
)
*
1
|
tmp
;
if
(
bank_cnt
>
2
)
total_size
-=
(
bank_size
)
*
(
bank_cnt
-
2
);
#endif
/*
...
...
@@ -464,8 +470,10 @@ long int spd_sdram(int(read_spd)(uint addr))
mtsdram0
(
mem_pmit
,
sdram0_pmit
);
mtsdram0
(
mem_mb0cf
,
sdram0_b0cr
);
mtsdram0
(
mem_mb1cf
,
sdram0_b1cr
);
#ifndef CONFIG_405EP
/* not on PPC405EP */
mtsdram0
(
mem_mb2cf
,
sdram0_b2cr
);
mtsdram0
(
mem_mb3cf
,
sdram0_b3cr
);
#endif
mtsdram0
(
mem_sdtr1
,
sdram0_tr
);
/* SDRAM have a power on delay, 500 micro should do */
...
...
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