Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Reform
reform-boundary-uboot
Commits
6f69bbc8
Commit
6f69bbc8
authored
17 years ago
by
Stefan Roese
Browse files
Options
Downloads
Plain Diff
Merge with /home/stefan/git/u-boot/u-boot-ppc4xx
parents
8b39501d
37ed6cdd
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/4xx_enet.c
+21
-9
21 additions, 9 deletions
cpu/ppc4xx/4xx_enet.c
with
21 additions
and
9 deletions
cpu/ppc4xx/4xx_enet.c
+
21
−
9
View file @
6f69bbc8
...
...
@@ -339,29 +339,41 @@ int ppc_4xx_eth_setup_bridge(int devnum, bd_t * bis)
int
ppc_4xx_eth_setup_bridge
(
int
devnum
,
bd_t
*
bis
)
{
unsigned
long
zmiifer
=
0x0
;
unsigned
long
pfc1
;
/*
* Right now only 2*RGMII is supported. Please extend when needed.
* sr - 2006-08-29
*/
switch
(
1
)
{
case
0
:
mfsdr
(
sdr_pfc1
,
pfc1
);
pfc1
&=
SDR0_PFC1_SELECT_MASK
;
switch
(
pfc1
)
{
case
SDR0_PFC1_SELECT_CONFIG_2
:
/* 1 x GMII port */
out32
(
ZMII_FER
,
0x00
);
out32
(
RGMII_FER
,
0x00000037
);
bis
->
bi_phymode
[
0
]
=
BI_PHYMODE_GMII
;
bis
->
bi_phymode
[
1
]
=
BI_PHYMODE_NONE
;
break
;
case
1
:
case
SDR0_PFC1_SELECT_CONFIG_4
:
/* 2 x RGMII ports */
out32
(
ZMII_FER
,
0x00
);
out32
(
RGMII_FER
,
0x00000055
);
bis
->
bi_phymode
[
0
]
=
BI_PHYMODE_RGMII
;
bis
->
bi_phymode
[
1
]
=
BI_PHYMODE_RGMII
;
break
;
case
2
:
case
SDR0_PFC1_SELECT_CONFIG_6
:
/* 2 x SMII ports */
out32
(
ZMII_FER
,
((
ZMII_FER_SMII
)
<<
ZMII_FER_V
(
0
))
|
((
ZMII_FER_SMII
)
<<
ZMII_FER_V
(
1
)));
out32
(
RGMII_FER
,
0x00000000
);
bis
->
bi_phymode
[
0
]
=
BI_PHYMODE_SMII
;
bis
->
bi_phymode
[
1
]
=
BI_PHYMODE_SMII
;
break
;
case
SDR0_PFC1_SELECT_CONFIG_1_2
:
/* only 1 x MII supported */
out32
(
ZMII_FER
,
(
ZMII_FER_MII
)
<<
ZMII_FER_V
(
0
));
out32
(
RGMII_FER
,
0x00000000
);
bis
->
bi_phymode
[
0
]
=
BI_PHYMODE_MII
;
bis
->
bi_phymode
[
1
]
=
BI_PHYMODE_NONE
;
break
;
default:
break
;
...
...
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