mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
board: qca: ipq5332: updated scope for the loop in PHY reset
The missing calibrace leads to an in-valid hardware access,
it in-turn causes silent reboot. So, added the calibrace to
define the scope for the loop statement.
Change-Id: I0c719798af35eb21a824ee6f570501dab720e241
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
(cherry picked from commit 17f2872c6b)
This commit is contained in:
parent
a355661408
commit
98fa31b9d4
1 changed files with 2 additions and 1 deletions
|
|
@ -1200,10 +1200,11 @@ void aquantia_phy_reset_init_done(void)
|
|||
|
||||
aquantia_gpio_cnt = get_aquantia_gpio(aquantia_gpio);
|
||||
if (aquantia_gpio_cnt >= 1) {
|
||||
for (i = 0; i < aquantia_gpio_cnt; i++)
|
||||
for (i = 0; i < aquantia_gpio_cnt; i++) {
|
||||
gpio_set_value(aquantia_gpio[i], 0x1);
|
||||
writel(0x3, GPIO_IN_OUT_ADDR(aquantia_gpio[i]));
|
||||
mdelay(500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue