[PATCH u-boot-marvell] arm: mvebu: turris_omnia: Fix setting switch CONFIG pins on new board design

Marek Behún kabel at kernel.org
Tue Sep 13 18:11:37 CEST 2022


On Tue, 13 Sep 2022 18:10:28 +0200
Marek Behún <kabel at kernel.org> wrote:

> 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 at kernel.org>
> ---
>  board/CZ.NIC/turris_omnia/turris_omnia.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c
> index a7f96e5b77..19c5043fcb 100644
> --- a/board/CZ.NIC/turris_omnia/turris_omnia.c
> +++ b/board/CZ.NIC/turris_omnia/turris_omnia.c
> @@ -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 */
>  

I forgot to add

Fixes: 1da53ae26afc ("arm: mvebu: turris_omnia: Add support for design with SW reset signals")


More information about the U-Boot mailing list