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
54fd6c93
Commit
54fd6c93
authored
17 years ago
by
Stefan Roese
Browse files
Options
Downloads
Patches
Plain Diff
ppc4xx: lwmon5: Change PHY reset sequence for PHY MDIO address latching
Signed-off-by:
Stefan Roese
<
sr@denx.de
>
parent
5c568d6a
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
board/lwmon5/lwmon5.c
+17
-9
17 additions, 9 deletions
board/lwmon5/lwmon5.c
with
17 additions
and
9 deletions
board/lwmon5/lwmon5.c
+
17
−
9
View file @
54fd6c93
...
@@ -96,6 +96,23 @@ int board_early_init_f(void)
...
@@ -96,6 +96,23 @@ int board_early_init_f(void)
gpio_write_bit
(
CFG_GPIO_FLASH_WP
,
1
);
gpio_write_bit
(
CFG_GPIO_FLASH_WP
,
1
);
/*
* Reset PHY's:
* The PHY's need a 2nd reset pulse, since the MDIO address is latched
* upon reset, and with the first reset upon powerup, the addresses are
* not latched reliable, since the IRQ line is multiplexed with an
* MDIO address. A 2nd reset at this time will make sure, that the
* correct address is latched.
*/
gpio_write_bit
(
CFG_GPIO_PHY0_RST
,
1
);
gpio_write_bit
(
CFG_GPIO_PHY1_RST
,
1
);
udelay
(
1000
);
gpio_write_bit
(
CFG_GPIO_PHY0_RST
,
0
);
gpio_write_bit
(
CFG_GPIO_PHY1_RST
,
0
);
udelay
(
1000
);
gpio_write_bit
(
CFG_GPIO_PHY0_RST
,
1
);
gpio_write_bit
(
CFG_GPIO_PHY1_RST
,
1
);
return
0
;
return
0
;
}
}
...
@@ -230,15 +247,6 @@ int misc_init_r(void)
...
@@ -230,15 +247,6 @@ int misc_init_r(void)
/* Write lime controller memory parameters */
/* Write lime controller memory parameters */
out_be32
((
void
*
)
CFG_LIME_MMR
,
CFG_LIME_MMR_VALUE
);
out_be32
((
void
*
)
CFG_LIME_MMR
,
CFG_LIME_MMR_VALUE
);
/*
* Reset PHY's
*/
gpio_write_bit
(
CFG_GPIO_PHY0_RST
,
0
);
gpio_write_bit
(
CFG_GPIO_PHY1_RST
,
0
);
udelay
(
100
);
gpio_write_bit
(
CFG_GPIO_PHY0_RST
,
1
);
gpio_write_bit
(
CFG_GPIO_PHY1_RST
,
1
);
/*
/*
* Init display controller
* Init display controller
*/
*/
...
...
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