mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
sunxi: SATA link timeout fix
After updating u-boot from v2016.01 to 2017.09, issue with
"SATA link 0 timeout." on my Cubietruck board.
mdelay milled after moving satapwr code to board.
"sunxi: Turn satapwr on from board_init"
(sha1: 9fbb0c3aa4
)
After adding the "mdelay(500);"
line that was lost in the path the error is gone.
Signed-off-by: Werner Böllmann <Werner.Boellmann@fh-dortmund.de>
[Rebased and updated change and commit message]
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
This commit is contained in:
parent
13ae2a40e7
commit
8e2c2d413c
1 changed files with 2 additions and 0 deletions
|
@ -217,6 +217,8 @@ int board_init(void)
|
|||
satapwr_pin = sunxi_name_to_gpio(CONFIG_SATAPWR);
|
||||
gpio_request(satapwr_pin, "satapwr");
|
||||
gpio_direction_output(satapwr_pin, 1);
|
||||
/* Give attached sata device time to power-up to avoid link timeouts */
|
||||
mdelay(500);
|
||||
#endif
|
||||
#ifdef CONFIG_MACPWR
|
||||
macpwr_pin = sunxi_name_to_gpio(CONFIG_MACPWR);
|
||||
|
|
Loading…
Add table
Reference in a new issue