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
51b67d06
Commit
51b67d06
authored
17 years ago
by
John Rigby
Committed by
Wolfgang Denk
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ADS5121: MAX slew rate for PATA pins
Signed-off-by:
John Rigby
<
jrigby@freescale.com
>
parent
dd531aac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
board/ads5121/ads5121.c
+8
-0
8 additions, 0 deletions
board/ads5121/ads5121.c
include/mpc512x.h
+9
-0
9 additions, 0 deletions
include/mpc512x.h
with
17 additions
and
0 deletions
board/ads5121/ads5121.c
+
8
−
0
View file @
51b67d06
...
@@ -180,9 +180,17 @@ int checkboard (void)
...
@@ -180,9 +180,17 @@ int checkboard (void)
{
{
ushort
brd_rev
=
*
(
vu_short
*
)
(
CFG_CPLD_BASE
+
0x00
);
ushort
brd_rev
=
*
(
vu_short
*
)
(
CFG_CPLD_BASE
+
0x00
);
uchar
cpld_rev
=
*
(
vu_char
*
)
(
CFG_CPLD_BASE
+
0x02
);
uchar
cpld_rev
=
*
(
vu_char
*
)
(
CFG_CPLD_BASE
+
0x02
);
volatile
immap_t
*
im
=
(
immap_t
*
)
CFG_IMMR
;
volatile
unsigned
long
*
reg
;
int
i
;
printf
(
"Board: ADS5121 rev. 0x%04x (CPLD rev. 0x%02x)
\n
"
,
printf
(
"Board: ADS5121 rev. 0x%04x (CPLD rev. 0x%02x)
\n
"
,
brd_rev
,
cpld_rev
);
brd_rev
,
cpld_rev
);
/* change the slew rate on all pata pins to max */
reg
=
(
unsigned
long
*
)
&
(
im
->
io_ctrl
.
regs
[
PATA_CE1_IDX
]);
for
(
i
=
0
;
i
<
9
;
i
++
)
reg
[
i
]
|=
0x00000003
;
return
0
;
return
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
include/mpc512x.h
+
9
−
0
View file @
51b67d06
...
@@ -345,6 +345,15 @@
...
@@ -345,6 +345,15 @@
/* Indexes in regs array */
/* Indexes in regs array */
#define MEM_IDX 0x00
#define MEM_IDX 0x00
#define PATA_CE1_IDX 0x2e
#define PATA_CE2_IDX 0x2f
#define PATA_ISOLATE_IDX 0x30
#define PATA_IOR_IDX 0x31
#define PATA_IOW_IDX 0x32
#define PATA_IOCHRDY_IDX 0x33
#define PATA_INTRQ_IDX 0x34
#define PATA_DRQ_IDX 0x35
#define PATA_DACK_IDX 0x36
#define SPDIF_TXCLOCK_IDX 0x73
#define SPDIF_TXCLOCK_IDX 0x73
#define SPDIF_TX_IDX 0x74
#define SPDIF_TX_IDX 0x74
#define SPDIF_RX_IDX 0x75
#define SPDIF_RX_IDX 0x75
...
...
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