Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rk3576 Downstream U-Boot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
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
Nicolas Frattaroli
Rk3576 Downstream U-Boot
Commits
a57106fc
Commit
a57106fc
authored
21 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
* Fix timeout problems with 1st packet on MPC5200
parent
373e6bec
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/mpc5xxx/fec.c
+8
-4
8 additions, 4 deletions
cpu/mpc5xxx/fec.c
with
8 additions
and
4 deletions
cpu/mpc5xxx/fec.c
+
8
−
4
View file @
a57106fc
...
...
@@ -387,7 +387,9 @@ static int mpc5xxx_fec_init(struct eth_device *dev, bd_t * bis)
/*
* Force 10Base-T, FDX operation
*/
#if (DEBUG & 0x2)
printf
(
"Forcing 10 Mbps ethernet link... "
);
#endif
miiphy_read
(
phyAddr
,
0x1
,
&
phyStatus
);
/*
miiphy_write(fec, phyAddr, 0x0, 0x0100);
...
...
@@ -427,11 +429,7 @@ static int mpc5xxx_fec_init(struct eth_device *dev, bd_t * bis)
/*
* Set the auto-negotiation advertisement register bits
*/
#ifndef CONFIG_FEC_10MBIT
miiphy_write
(
phyAddr
,
0x4
,
0x01e1
);
#else
miiphy_write
(
phyAddr
,
0x4
,
0x061
);
/* Advertise 10FDX */
#endif
/*
* Set MDIO bit 0.12 = 1(&& bit 0.9=1?) to enable auto-negotiation
...
...
@@ -826,7 +824,13 @@ int mpc5xxx_fec_initialize(bd_t * bis)
fec
->
tbdBase
=
(
FEC_TBD
*
)
FEC_BD_BASE
;
fec
->
rbdBase
=
(
FEC_RBD
*
)(
FEC_BD_BASE
+
FEC_TBD_NUM
*
sizeof
(
FEC_TBD
));
#ifdef CONFIG_ICECUBE
#ifndef CONFIG_FEC_10MBIT
fec
->
xcv_type
=
MII100
;
#else
fec
->
xcv_type
=
MII10
;
#endif
#else
#error fec->xcv_type not initialized.
#endif
dev
->
priv
=
(
void
*
)
fec
;
...
...
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