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
4db9708b
Commit
4db9708b
authored
14 years ago
by
Kumar Gala
Browse files
Options
Downloads
Patches
Plain Diff
85xx: Convert cpu_init_f code to use out_be32 for LBC registers
Signed-off-by:
Kumar Gala
<
galak@kernel.crashing.org
>
parent
cd3abcfa
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
arch/powerpc/cpu/mpc85xx/cpu_init.c
+18
-18
18 additions, 18 deletions
arch/powerpc/cpu/mpc85xx/cpu_init.c
with
18 additions
and
18 deletions
arch/powerpc/cpu/mpc85xx/cpu_init.c
+
18
−
18
View file @
4db9708b
...
...
@@ -180,54 +180,54 @@ void cpu_init_f (void)
* has been determined
*/
#if defined(CONFIG_SYS_OR0_REMAP)
memctl
->
or0
=
CONFIG_SYS_OR0_REMAP
;
out_be32
(
&
memctl
->
or0
,
CONFIG_SYS_OR0_REMAP
)
;
#endif
#if defined(CONFIG_SYS_OR1_REMAP)
memctl
->
or1
=
CONFIG_SYS_OR1_REMAP
;
out_be32
(
&
memctl
->
or1
,
CONFIG_SYS_OR1_REMAP
)
;
#endif
/* now restrict to preliminary range */
/* if cs1 is already set via debugger, leave cs0/cs1 alone */
if
(
!
memctl
->
br1
&
1
)
{
#if defined(CONFIG_SYS_BR0_PRELIM) && defined(CONFIG_SYS_OR0_PRELIM)
memctl
->
br0
=
CONFIG_SYS_BR0_PRELIM
;
memctl
->
or0
=
CONFIG_SYS_OR0_PRELIM
;
out_be32
(
&
memctl
->
br0
,
CONFIG_SYS_BR0_PRELIM
)
;
out_be32
(
&
memctl
->
or0
,
CONFIG_SYS_OR0_PRELIM
)
;
#endif
#if defined(CONFIG_SYS_BR1_PRELIM) && defined(CONFIG_SYS_OR1_PRELIM)
memctl
->
or1
=
CONFIG_SYS_OR1_PRELIM
;
memctl
->
br1
=
CONFIG_SYS_BR1_PRELIM
;
out_be32
(
&
memctl
->
or1
,
CONFIG_SYS_OR1_PRELIM
)
;
out_be32
(
&
memctl
->
br1
,
CONFIG_SYS_BR1_PRELIM
)
;
#endif
}
#if defined(CONFIG_SYS_BR2_PRELIM) && defined(CONFIG_SYS_OR2_PRELIM)
memctl
->
or2
=
CONFIG_SYS_OR2_PRELIM
;
memctl
->
br2
=
CONFIG_SYS_BR2_PRELIM
;
out_be32
(
&
memctl
->
or2
,
CONFIG_SYS_OR2_PRELIM
)
;
out_be32
(
&
memctl
->
br2
,
CONFIG_SYS_BR2_PRELIM
)
;
#endif
#if defined(CONFIG_SYS_BR3_PRELIM) && defined(CONFIG_SYS_OR3_PRELIM)
memctl
->
or3
=
CONFIG_SYS_OR3_PRELIM
;
memctl
->
br3
=
CONFIG_SYS_BR3_PRELIM
;
out_be32
(
&
memctl
->
or3
,
CONFIG_SYS_OR3_PRELIM
)
;
out_be32
(
&
memctl
->
br3
,
CONFIG_SYS_BR3_PRELIM
)
;
#endif
#if defined(CONFIG_SYS_BR4_PRELIM) && defined(CONFIG_SYS_OR4_PRELIM)
memctl
->
or4
=
CONFIG_SYS_OR4_PRELIM
;
memctl
->
br4
=
CONFIG_SYS_BR4_PRELIM
;
out_be32
(
&
memctl
->
or4
,
CONFIG_SYS_OR4_PRELIM
)
;
out_be32
(
&
memctl
->
br4
,
CONFIG_SYS_BR4_PRELIM
)
;
#endif
#if defined(CONFIG_SYS_BR5_PRELIM) && defined(CONFIG_SYS_OR5_PRELIM)
memctl
->
or5
=
CONFIG_SYS_OR5_PRELIM
;
memctl
->
br5
=
CONFIG_SYS_BR5_PRELIM
;
out_be32
(
&
memctl
->
or5
,
CONFIG_SYS_OR5_PRELIM
)
;
out_be32
(
&
memctl
->
br5
,
CONFIG_SYS_BR5_PRELIM
)
;
#endif
#if defined(CONFIG_SYS_BR6_PRELIM) && defined(CONFIG_SYS_OR6_PRELIM)
memctl
->
or6
=
CONFIG_SYS_OR6_PRELIM
;
memctl
->
br6
=
CONFIG_SYS_BR6_PRELIM
;
out_be32
(
&
memctl
->
or6
,
CONFIG_SYS_OR6_PRELIM
)
;
out_be32
(
&
memctl
->
br6
,
CONFIG_SYS_BR6_PRELIM
)
;
#endif
#if defined(CONFIG_SYS_BR7_PRELIM) && defined(CONFIG_SYS_OR7_PRELIM)
memctl
->
or7
=
CONFIG_SYS_OR7_PRELIM
;
memctl
->
br7
=
CONFIG_SYS_BR7_PRELIM
;
out_be32
(
&
memctl
->
or7
,
CONFIG_SYS_OR7_PRELIM
)
;
out_be32
(
&
memctl
->
br7
,
CONFIG_SYS_BR7_PRELIM
)
;
#endif
#if defined(CONFIG_CPM2)
...
...
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