Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uboot-i9100
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
Model registry
Operate
Environments
Monitor
Incidents
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
onny
uboot-i9100
Commits
0fe34058
Commit
0fe34058
authored
16 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
EB+MCF-EV123 board: fix coding style (alingment)
Signed-off-by:
Wolfgang Denk
<
wd@denx.de
>
parent
6841785a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
board/BuS/EB+MCF-EV123/EB+MCF-EV123.c
+43
-43
43 additions, 43 deletions
board/BuS/EB+MCF-EV123/EB+MCF-EV123.c
with
43 additions
and
43 deletions
board/BuS/EB+MCF-EV123/EB+MCF-EV123.c
+
43
−
43
View file @
0fe34058
...
...
@@ -41,51 +41,51 @@ int checkboard (void)
phys_size_t
initdram
(
int
board_type
)
{
int
size
,
i
;
int
size
,
i
;
size
=
0
;
MCFSDRAMC_DCR
=
MCFSDRAMC_DCR_RTIM_6
|
MCFSDRAMC_DCR_RC
((
15
*
CFG_CLK
)
>>
4
);
#ifdef CFG_SDRAM_BASE0
MCFSDRAMC_DACR0
=
MCFSDRAMC_DACR_BASE
(
CFG_SDRAM_BASE0
)
|
MCFSDRAMC_DACR_CASL
(
1
)
|
MCFSDRAMC_DACR_CBM
(
3
)
|
MCFSDRAMC_DACR_PS_16
;
MCFSDRAMC_DMR0
=
MCFSDRAMC_DMR_BAM_16M
|
MCFSDRAMC_DMR_V
;
MCFSDRAMC_DACR0
|=
MCFSDRAMC_DACR_IP
;
*
(
unsigned
short
*
)(
CFG_SDRAM_BASE0
)
=
0xA5A5
;
MCFSDRAMC_DACR0
|=
MCFSDRAMC_DACR_RE
;
for
(
i
=
0
;
i
<
2000
;
i
++
)
asm
(
" nop"
);
mbar_
write
Long
(
MCFSDRAMC_DACR0
,
mbar_readLong
(
MCFSDRAMC_DACR
0
)
|
MCFSDRAMC_DACR_IMRS
)
;
*
(
unsigned
int
*
)(
CFG_SDRAM_BASE0
+
0x220
)
=
0xA5A5
;
size
+=
CFG_SDRAM_SIZE
*
1024
*
1024
;
#endif
#ifdef
CFG_SDRAM_BASE1
MCFSDRAMC_DACR1
=
MCFSDRAMC_DACR_
B
AS
E
(
CFG_SDRAM_BASE
1
)
|
MCFSDRAMC_DACR_C
ASL
(
1
)
|
MCFSDRAMC_DACR_
CBM
(
3
)
|
MCFSDRAMC_DACR_PS_16
;
MCFSDRAMC_DMR1
=
MCFSDRAMC_DMR_BAM_16M
|
MCFSDRAMC_D
MR_V
;
MCFSDRAMC_DACR1
|=
MCFSDRAMC_DACR_IP
;
*
(
unsigned
short
*
)(
CFG_SDRAM_BASE1
)
=
0xA5A5
;
MCFSDRAMC_DACR1
|=
MCFSDRAMC_DACR_RE
;
for
(
i
=
0
;
i
<
2000
;
i
++
)
asm
(
" nop"
);
MCFSDRAMC_DACR1
|=
MCFSDRAMC_DACR_IMRS
;
*
(
unsigned
int
*
)(
CFG_SDRAM_BASE1
+
0x220
)
=
0xA5A5
;
size
+=
CFG_SDRAM_SIZE1
*
1024
*
1024
;
#endif
MCFSDRAMC_DCR
=
MCFSDRAMC_DCR_RTIM_6
|
MCFSDRAMC_DCR_RC
((
15
*
CFG_CLK
)
>>
4
);
#ifdef CFG_SDRAM_BASE0
MCFSDRAMC_DACR0
=
MCFSDRAMC_DACR_BASE
(
CFG_SDRAM_BASE0
)
|
MCFSDRAMC_DACR_CASL
(
1
)
|
MCFSDRAMC_DACR_CBM
(
3
)
|
MCFSDRAMC_DACR_PS_16
;
MCFSDRAMC_DMR0
=
MCFSDRAMC_DMR_BAM_16M
|
MCFSDRAMC_DMR_V
;
MCFSDRAMC_DACR0
|=
MCFSDRAMC_DACR_IP
;
*
(
unsigned
short
*
)
(
CFG_SDRAM_BASE0
)
=
0xA5A5
;
MCFSDRAMC_DACR0
|=
MCFSDRAMC_DACR_RE
;
for
(
i
=
0
;
i
<
2000
;
i
++
)
asm
(
" nop"
);
mbar_writeLong
(
MCFSDRAMC_DACR0
,
mbar_
read
Long
(
MCFSDRAMC_DACR0
)
|
MCFSDRAMC_DACR
_IMRS
);
*
(
unsigned
int
*
)
(
CFG_SDRAM_BASE0
+
0x220
)
=
0xA5A5
;
size
+=
CFG_SDRAM_SIZE
*
1024
*
1024
;
#endif
#ifdef CFG_SDRAM_BASE1
MCFSDRAMC_DACR1
=
MCFSDRAMC_DACR_BASE
(
CFG_SDRAM_BASE1
)
|
MCFSDRAMC_DACR_
C
AS
L
(
1
)
|
MCFSDRAMC_DACR_C
BM
(
3
)
|
MCFSDRAMC_DACR_
PS_16
;
MCFSDRAMC_DMR1
=
MCFSDRAMC_DMR_BAM_16M
|
MCFSDRAMC_DMR_V
;
MCFSDRAMC_DACR1
|=
MCFSDRAMC_D
ACR_IP
;
*
(
unsigned
short
*
)
(
CFG_SDRAM_BASE1
)
=
0xA5A5
;
MCFSDRAMC_DACR1
|=
MCFSDRAMC_DACR_RE
;
for
(
i
=
0
;
i
<
2000
;
i
++
)
asm
(
" nop"
);
MCFSDRAMC_DACR1
|=
MCFSDRAMC_DACR_IMRS
;
*
(
unsigned
int
*
)
(
CFG_SDRAM_BASE1
+
0x220
)
=
0xA5A5
;
size
+=
CFG_SDRAM_SIZE1
*
1024
*
1024
;
#endif
return
size
;
}
...
...
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