]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: turris_omnia: Fix setting switch CONFIG pins on new board design
authorMarek Behún <kabel@kernel.org>
Tue, 13 Sep 2022 16:10:28 +0000 (18:10 +0200)
committerStefan Roese <sr@denx.de>
Sun, 18 Sep 2022 10:41:57 +0000 (12:41 +0200)
It seems that waiting only 10 ms after releasing LAN switch from reset
is not enough for the strapping pins to latch the requested values.
P6_MODE[0] is latched to 0 instead of 1.

Increasing the delay to 50 ms fixes this issue.

Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
board/CZ.NIC/turris_omnia/turris_omnia.c

index a7f96e5b773975b824e9d9ad46141b45263510d9..19c5043fcbaaac3f21d20f9a66e179da187424b2 100644 (file)
@@ -654,7 +654,7 @@ static void initialize_switch(void)
        ctrl[1] = EXT_CTL_nRES_LAN;
        err = omnia_mcu_write(CMD_EXT_CONTROL, ctrl, sizeof(ctrl));
 
-       mdelay(10);
+       mdelay(50);
 
        /* Change RGMII pins back to RGMII mode */